From eb45e03f16a4c51ae7c0d310bb327e5c39e1ec3c Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 9 Jun 2025 15:36:47 +0200 Subject: [PATCH] update path building --- .gitea/workflows/deploy.yml | 4 ++++ astro.config.mjs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2ba15ba..072b282 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,8 +10,10 @@ jobs: matrix: include: - dir: /opt/website + base_path: /varo service: website - dir: /opt/website-test + base_path: /testvaro service: website-test steps: - name: Checkout @@ -29,6 +31,8 @@ jobs: run: npm i - name: Build website + env: + BASE_PATH: ${{ matrix.base_path }} run: npm run build - name: Deploy diff --git a/astro.config.mjs b/astro.config.mjs index 0dcd2a8..6521471 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -14,7 +14,7 @@ import inoxToolsRuntimeLogger from '@inox-tools/runtime-logger'; export default defineConfig({ output: 'server', prefetch: true, - base: '/varo', + base: process.env.BASE_PATH ?? undefined, security: { checkOrigin: false