refactor: use a custom Link component to be able to use absolute URLs everywhere

...that supports any `base` property
This commit is contained in:
Joakim Carlstein 2023-12-19 09:57:23 +01:00
parent bdf831b008
commit ca6834d95f
21 changed files with 89 additions and 53 deletions

View file

@ -7,7 +7,7 @@ const base = process.env.ASTRO_BASE || '';
// https://astro.build/config
export default defineConfig({
site: process.env.ASTRO_SITE,
site: process.env.ASTRO_SITE ?? 'http://localhost:4321',
base: base || undefined,
integrations: [
starlight({