Skip to content

Commit 69d2480

Browse files
committed
fix playground prod script
1 parent 123b5cb commit 69d2480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playgrounds/demo/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33
import express from 'express';
4-
import { head, html } from './server/entry-server.js';
4+
import { head, body } from './server/entry-server.js';
55

66
const rendered = fs
77
.readFileSync(path.resolve('./dist/client/index.html'), 'utf-8')
8-
.replace(`<!--ssr-html-->`, html)
8+
.replace(`<!--ssr-html-->`, body)
99
.replace(`<!--ssr-head-->`, head);
1010

1111
express()

0 commit comments

Comments
 (0)