fix playground prod script

pull/11954/head
Rich Harris 1 month ago
parent 123b5cbecb
commit 69d2480f4d

@ -1,11 +1,11 @@
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import express from 'express'; import express from 'express';
import { head, html } from './server/entry-server.js'; import { head, body } from './server/entry-server.js';
const rendered = fs const rendered = fs
.readFileSync(path.resolve('./dist/client/index.html'), 'utf-8') .readFileSync(path.resolve('./dist/client/index.html'), 'utf-8')
.replace(`<!--ssr-html-->`, html) .replace(`<!--ssr-html-->`, body)
.replace(`<!--ssr-head-->`, head); .replace(`<!--ssr-head-->`, head);
express() express()

Loading…
Cancel
Save