diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c2662fd..0d74790 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/next.config.mjs b/next.config.mjs index a039937..b9ddcee 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,7 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: "export", - basePath: "/CUBS-website", + basePath: process.env.BasePath, images: { unoptimized: true, },