This package allows you to specify .route.tsx files anywhere in your /app directory and they will be recognized as routes
Filenames follow the v2 flat routes convention
root.tsx
app
_layout.route.tsx| import { invariant } from "@epic-web/invariant" | |
| import { createCookieSessionStorage, redirect } from "@vercel/remix" | |
| import { GitHubProfile, GitHubStrategy } from "remix-auth-github" | |
| import { Authenticator } from "remix-auth" | |
| import { useNavigate } from "@remix-run/react" | |
| invariant(process.env.GITHUB_CLIENT_ID, "GITHUB_CLIENT_ID is not set") | |
| invariant(process.env.GITHUB_CLIENT_SECRET, "GITHUB_CLIENT_SECRET is not set") | |
| invariant(process.env.GITHUB_REDIRECT_URI, "GITHUB_REDIRECT_URI is not set") | |
| invariant(process.env.SESSION_SECRET, "SESSION_SECRET is not set") |
| import { | |
| cachified as baseCachified, | |
| type CacheEntry, | |
| type Cache, | |
| totalTtl, | |
| type CachifiedOptions, | |
| verboseReporter, | |
| } from '@epic-web/cachified'; | |
| import { remember } from '@epic-web/remember'; | |
| import { LRUCache } from 'lru-cache'; |
| import { type IconName } from "#app/components/icons/icons.ts" | |
| import href from "#app/components/icons/sprite.svg" | |
| export function Icon({ | |
| name, | |
| className, | |
| ...props | |
| }: React.SVGProps<SVGSVGElement> & { | |
| name: IconName | |
| }) { |
| patch package.json < package.json.patch |
| export type PerformanceServerTimings = Record< | |
| string, | |
| Array<PerformanceServerTiming> | |
| > | |
| /** | |
| * Run this on the server to get a `time` function that can be used to time | |
| * server-side operations and add them to the `Server-Timing` header. | |
| */ | |
| export function getServerTiming() { |
| diff --git a/node_modules/@remix-run/dev/dist/compiler/assets.js b/node_modules/@remix-run/dev/dist/compiler/assets.js | |
| index b01942f..8f90ae1 100644 | |
| --- a/node_modules/@remix-run/dev/dist/compiler/assets.js | |
| +++ b/node_modules/@remix-run/dev/dist/compiler/assets.js | |
| @@ -95,6 +95,7 @@ async function createAssetsManifest({ | |
| routes, | |
| hmrRoutes: hmr === null || hmr === void 0 ? void 0 : hmr.routes | |
| })).slice(0, 8); | |
| + | |
| return { |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |