Skip to content

Commit

Permalink
fix: prerendering
Browse files Browse the repository at this point in the history
fix #2486
  • Loading branch information
johangirod committed Dec 15, 2023
1 parent 4620ae3 commit f928573
Show file tree
Hide file tree
Showing 5 changed files with 8,249 additions and 359 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
21
2 changes: 1 addition & 1 deletion site/build/prerender-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit f928573

Please sign in to comment.