File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 type ServerBuild ,
1515 createContext ,
1616} from 'react-router'
17+ import { serverBuildContext } from './router-context'
1718
1819const MODE = process . env . NODE_ENV ?? 'development'
1920const IS_PROD = MODE === 'production'
@@ -201,11 +202,6 @@ if (!ALLOW_INDEXING) {
201202 } )
202203}
203204
204- const serverBuildContext = createContext < Promise < {
205- error : unknown
206- build : ServerBuild
207- } > | null > ( null )
208-
209205app . all (
210206 '*' ,
211207 createRequestHandler ( {
Original file line number Diff line number Diff line change 1+ import { createContext , type ServerBuild } from 'react-router'
2+
3+ // Shared context key for passing the built routes into loaders (e.g. sitemap)
4+ export const serverBuildContext = createContext <
5+ Promise < { error : unknown ; build : ServerBuild } > | null
6+ > ( null )
7+
You can’t perform that action at this time.
0 commit comments