|
@@ -11,14 +11,9 @@ async function createServer(
|
|
|
) {
|
|
|
const resolve = (p) => path.resolve(__dirname, p)
|
|
|
|
|
|
- const indexProd = isProd
|
|
|
- ? fs.readFileSync(resolve('dist/client/index.html'), 'utf-8')
|
|
|
- : ''
|
|
|
+ const indexProd = fs.readFileSync(resolve('dist/client/index.html'), 'utf-8')
|
|
|
|
|
|
- const manifest = isProd
|
|
|
- ? // @ts-ignore
|
|
|
- require('./dist/client/ssr-manifest.json')
|
|
|
- : {}
|
|
|
+ const manifest = require('./dist/client/ssr-manifest.json')
|
|
|
|
|
|
const app = express()
|
|
|
|