ci: only set site and base during deployment
This commit is contained in:
parent
f63fa9d864
commit
e245d6f18a
3 changed files with 11 additions and 3 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import process from 'node:process';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import starlight from '@astrojs/starlight';
|
||||
import tailwind from '@astrojs/tailwind';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://aboviq.github.io',
|
||||
base: '/emigrate',
|
||||
site: process.env.ASTRO_SITE,
|
||||
base: process.env.ASTRO_BASE,
|
||||
integrations: [
|
||||
starlight({
|
||||
title: 'Emigrate',
|
||||
|
|
|
|||
|
|
@ -20,5 +20,9 @@
|
|||
"astro": "^4.0.1",
|
||||
"sharp": "^0.32.5",
|
||||
"tailwindcss": "^3.3.6"
|
||||
}
|
||||
},
|
||||
"volta": {
|
||||
"extends": "../../package.json"
|
||||
},
|
||||
"packageManager": "pnpm@8.10.2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue