Skip to content

Commit ebb040f

Browse files
committed
fix(vite): update <!--ssr-outlet--> for prod
1 parent 4576b7c commit ebb040f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/vite/prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function buildEnvironments(
6464
const html = await readFile(outputPath, "utf8").then((r) =>
6565
r.replace(
6666
"<!--ssr-outlet-->",
67-
`{{{ fetch($REQUEST, { viteEnv: "ssr" }) }}}`
67+
`{{{ globalThis.__nitro_vite_envs__?.["ssr"]?.fetch($REQUEST) || "" }}}`
6868
)
6969
);
7070
await rm(outputPath);

0 commit comments

Comments
 (0)