allow alternative URLs for self-hosted strudel
This commit is contained in:
parent
f7f8c56c0a
commit
40f9f4cde0
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ import bundleAudioWorkletPlugin from 'vite-plugin-bundle-audioworklet';
|
||||||
import tailwind from '@astrojs/tailwind';
|
import tailwind from '@astrojs/tailwind';
|
||||||
import AstroPWA from '@vite-pwa/astro';
|
import AstroPWA from '@vite-pwa/astro';
|
||||||
|
|
||||||
const site = `https://strudel.cc/`; // root url without a path
|
const site = process.env.STRUDEL_SITE || `https://strudel.cc/`; // root url without a path
|
||||||
const base = '/'; // base path of the strudel site
|
const base = process.env.STRUDEL_BASE || '/'; // base path of the strudel site
|
||||||
const baseNoTrailing = base.endsWith('/') ? base.slice(0, -1) : base;
|
const baseNoTrailing = base.endsWith('/') ? base.slice(0, -1) : base;
|
||||||
|
|
||||||
// this rehype plugin fixes relative links
|
// this rehype plugin fixes relative links
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue