diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 4c034ec..c42d33d 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -24,7 +24,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v2 with: - version: 8 + version: 9 - name: Install Dependencies working-directory: frontend diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 794a1ad..84b2651 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages on: push: branches: - - main + - '**' permissions: contents: write @@ -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 diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 3436fc2..699b8ff 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -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, },