diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2ba15ba..62df4f4 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 @@ -36,6 +38,7 @@ jobs: HOST: ${{ secrets.SSH_HOST}} USER: ${{ secrets.SSH_USER }} SSH_KEY: ${{ secrets.SSH_KEY }} + BASE_PATH: ${{ matrix.base_path }} DIRECTORY: ${{ matrix.dir }} SERVICE: ${{ matrix.service }} run: | 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