fix: prerendering

fix #2486
pull/2847/head
Johan Girod 2023-12-14 16:49:13 +01:00
parent 4620ae3a08
commit f928573072
5 changed files with 8034 additions and 144 deletions

View File

@ -69,6 +69,8 @@ jobs:
- name: Build app SSR
run: |
yarn workspace site build:ssr
- name: Prerender common routes
run: |
yarn workspace site build:prerender --netlify-toml-path ./netlify.base.toml
- name: Replace site placeholders in netlify.toml redirection file
run: |

2
.nvmrc
View File

@ -1 +1 @@
18
21

View File

@ -3,7 +3,7 @@ import path from 'node:path'
import { fileURLToPath } from 'url'
// @ts-ignore
import { render } from '../dist/ssr/entry-server'
import { render } from '../dist/ssr/entry-server.js'
const dirname = path.dirname(fileURLToPath(import.meta.url))

View File

@ -127,6 +127,7 @@
"cypress-wait-until": "^1.7.2",
"dotenv": "^16.3.1",
"i18next-parser": "^8.7.0",
"netlify-cli": "^17.10.1",
"serve-static": "^1.15.0",
"storybook": "^7.4.3",
"tinypool": "^0.8.1",

8171
yarn.lock

File diff suppressed because it is too large Load Diff