0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00

fix playground prod script

This commit is contained in:
Rich Harris 2024-06-07 10:22:41 -04:00
parent 123b5cbecb
commit 69d2480f4d

View File

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