From a437baf41824515c4732725df30b13a003142b99 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Sun, 21 Dec 2025 17:51:40 +0100 Subject: [PATCH 1/2] Fix carousel loading --- astro.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 0409cfd..29a720e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -6,7 +6,7 @@ import mdx from '@astrojs/mdx'; export default defineConfig({ output: 'static', site: 'https://tutorial-v2.djangogirls.org/', - base: '/', + base: '/tutorial-v2', integrations: [ react(), mdx() From def02a9aaf06c052065b252f485763f7bfef545d Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Sun, 21 Dec 2025 18:04:56 +0100 Subject: [PATCH 2/2] Fix e2e CI --- .github/workflows/deploy.yaml | 3 +++ astro.config.mjs | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 00bd03a..071a755 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,6 +13,8 @@ permissions: jobs: build: runs-on: ubuntu-latest + env: + GITHUB_PAGES: true steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -34,3 +36,4 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + diff --git a/astro.config.mjs b/astro.config.mjs index 29a720e..47369e8 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,10 +3,14 @@ import { defineConfig } from 'astro/config'; import react from "@astrojs/react"; import mdx from '@astrojs/mdx'; +const isProd = process.env.GITHUB_PAGES === 'true'; + export default defineConfig({ output: 'static', - site: 'https://tutorial-v2.djangogirls.org/', - base: '/tutorial-v2', + site: isProd + ? 'https://yourname.github.io/repo-name' + : 'http://localhost:4321', + base: isProd ? '/repo-name' : '/', integrations: [ react(), mdx()