Skip to content

Commit

Permalink
Fix production deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
andraghetti committed Dec 4, 2024
1 parent ce7918c commit 72fdada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: Install Dependencies
working-directory: frontend
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main
- '**'

permissions:
contents: write
Expand Down Expand Up @@ -35,6 +35,9 @@ jobs:

- name: Build
working-directory: frontend
env:
NODE_ENV: production
NEXT_PUBLIC_BASE_PATH: /The-Good-AI-Lab
run: pnpm build

- name: Deploy
Expand Down
3 changes: 2 additions & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
basePath: process.env.NODE_ENV === 'production' ? '/thegoodailab' : '',
basePath: process.env.NODE_ENV === 'production' ? '/The-Good-AI-Lab' : '',
assetPrefix: process.env.NODE_ENV === 'production' ? '/The-Good-AI-Lab' : '',
images: {
unoptimized: true,
},
Expand Down

0 comments on commit 72fdada

Please sign in to comment.