diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index da92def..49568cb 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -28,6 +28,8 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + env: + BASE_URL: "/Whyuluvfootball" steps: - name: Checkout uses: actions/checkout@v4 diff --git a/astro.config.mjs b/astro.config.mjs index 461bd30..878d5cc 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,5 +4,6 @@ import tailwind from "@astrojs/tailwind"; // https://astro.build/config export default defineConfig({ - integrations: [tailwind()] -}); \ No newline at end of file + integrations: [tailwind()], + base: process.env.BASE_URL ? process.env.BASE_URL : "/", +});