Skip to content

Commit

Permalink
fix: base path
Browse files Browse the repository at this point in the history
  • Loading branch information
boomchanotai committed Oct 3, 2024
1 parent 12908c1 commit e26acd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
- name: Install dependencies
run: |
pnpm install
- name: "Create env file"
run: |
touch .env
echo BasePath=/CUBS-website >> .env
cat .env
- name: Build
run: |
pnpm run build
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
basePath: "/CUBS-website",
basePath: process.env.BasePath,
images: {
unoptimized: true,
},
Expand Down

0 comments on commit e26acd3

Please sign in to comment.