diff --git a/.astro/types.d.ts b/.astro/types.d.ts index 03d7cc4..f964fe0 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -1,2 +1 @@ /// -/// \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ea515c5..681e220 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,6 +26,8 @@ jobs: uses: withastro/action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SITE_BASE: gameflow-website + SITE_URL: https://simeonradivoev.github.io with: package-manager: "bun" diff --git a/astro.config.mjs b/astro.config.mjs index 7f4af91..bf32e7c 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,14 @@ // @ts-check import { defineConfig } from 'astro/config'; import tailwindcss from '@tailwindcss/vite' +import { loadEnv } from 'vite'; + +const env = loadEnv(process.env.NODE_ENV, process.cwd(), ''); // https://astro.build/config export default defineConfig({ - site: 'https://simeonradivoev.github.io', - base: '/gameflow', + site: env.SITE_URL, + base: `/${env.SITE_BASE}`, vite: { plugins: [ tailwindcss()