diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 151c48fc1..37904cb82 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -10,8 +10,8 @@ import bundleAudioWorkletPlugin from 'vite-plugin-bundle-audioworklet'; import tailwind from '@astrojs/tailwind'; import AstroPWA from '@vite-pwa/astro'; -const site = `https://strudel.cc/`; // root url without a path -const base = '/'; // base path of the strudel site +const site = process.env.STRUDEL_SITE || `https://strudel.cc/`; // root url without a path +const base = process.env.STRUDEL_BASE || '/'; // base path of the strudel site const baseNoTrailing = base.endsWith('/') ? base.slice(0, -1) : base; // this rehype plugin fixes relative links