Skip to content

Commit 7b77751

Browse files
committed
Revert "fix HMR"
This reverts commit be76fc2. This did not fix the problem and is likely unrelated
1 parent be76fc2 commit 7b77751

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/routes/_seo+/sitemap[.]xml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type ServerBuild, type LoaderFunctionArgs } from '@remix-run/node'
33
import { getDomainUrl } from '#app/utils/misc.tsx'
44

55
export async function loader({ request, context }: LoaderFunctionArgs) {
6-
const serverBuild = context.serverBuild as ServerBuild
6+
const serverBuild = (await context.serverBuild) as ServerBuild
77
return generateSitemap(request, serverBuild.routes, {
88
siteUrl: getDomainUrl(request),
99
headers: {

server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ if (!ALLOW_INDEXING) {
216216
app.all(
217217
'*',
218218
createRequestHandler({
219-
getLoadContext: async (_: any, res: any) => ({
219+
getLoadContext: (_: any, res: any) => ({
220220
cspNonce: res.locals.cspNonce,
221-
serverBuild: await getBuild(),
221+
serverBuild: getBuild(),
222222
}),
223223
mode: MODE,
224224
build: getBuild,

0 commit comments

Comments
 (0)