From e02066ace7e8e028f891644bb510808720299b26 Mon Sep 17 00:00:00 2001 From: "f.sanchez" Date: Tue, 11 Jun 2024 14:20:55 +0200 Subject: [PATCH] fix base path --- .github/workflows/static.yml | 2 ++ astro.config.mjs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 : "/", +});