Rename "server" directory to "ssr"

pull/2352/head
Jérémy Rialland 2022-10-24 17:32:53 +02:00 committed by Jérémy Rialland
parent e221b590d2
commit 7313488725
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
"start:axe-debugging": "VITE_AXE_CORE_ENABLED=true vite dev",
"start:netlify": "sed 's|:SITE_EN|/infrance|g' netlify.base.toml | sed 's|:SITE_FR|/mon-entreprise|g' | sed 's|:API_URL|http://localhost:3004|g' | sed 's|\\[\\[redirects\\]\\]|\\[\\[redirects\\]\\]\\n force = true|g' > netlify.toml && HMR_CLIENT_PORT=8888 netlify dev",
"build": "NODE_OPTIONS='--max-old-space-size=6144'; yarn build:sitemap && vite build && yarn build:iframe-script",
"build:ssr": "NODE_OPTIONS='--max-old-space-size=4096'; vite build --ssr ./source/entry-server.tsx --outDir ./dist/server --emptyOutDir && echo '{\"module\": \"commonjs\"}' > dist/package.json",
"build:ssr": "NODE_OPTIONS='--max-old-space-size=4096'; vite build --ssr ./source/entry-server.tsx --outDir ./dist/ssr --emptyOutDir && echo '{\"module\": \"commonjs\"}' > dist/package.json",
"build:prerender": "ts-node-esm prerender.ts",
"build:iframe-script": "NODE_OPTIONS='--max-old-space-size=4096'; vite build --config vite-iframe-script.config.ts",
"build:sitemap": "ts-node-esm scripts/build-sitemap.ts",

View File

@ -1,4 +1,4 @@
import { render } from './dist/server/entry-server.js'
import { render } from './dist/ssr/entry-server.js'
import { promises as fs, readFileSync } from 'node:fs'
import path from 'node:path'