Skip to content

Commit

Permalink
fix(website): use BASE_PATH for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Feb 13, 2024
1 parent 733ef0c commit 6398748
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const {BASE_PATH = ''} = process.env

/**
* @import {import('next').NextConfig}
*/
const config = {
basePath: BASE_PATH,
output: 'export',
}

Expand Down
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"clean": "rimraf .next",
"build": "next build",
"build": "cross-env BASE_PATH='/live-region-element' next build",
"develop": "next",
"type-check": "npx tsc --noEmit"
},
Expand All @@ -17,6 +17,7 @@
"devDependencies": {
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"cross-env": "^7.0.3",
"rimraf": "^5.0.5",
"typescript": "^5.3.3"
}
Expand Down

0 comments on commit 6398748

Please sign in to comment.