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:
parent
123b5cbecb
commit
69d2480f4d
4
playgrounds/demo/dist/index.js
vendored
4
playgrounds/demo/dist/index.js
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user