From 40f9f4cde0870283d774f144d5eb3d879205b10e Mon Sep 17 00:00:00 2001 From: alienmind Date: Fri, 9 Jan 2026 15:38:52 +0100 Subject: [PATCH 1/2] allow alternative URLs for self-hosted strudel --- website/astro.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From eefae851d50a96d1d2280d79022ef61d319605f3 Mon Sep 17 00:00:00 2001 From: alienmind Date: Fri, 9 Jan 2026 15:40:01 +0100 Subject: [PATCH 2/2] fix malformed script src attributes --- website/src/components/HeadCommon.astro | 2 +- website/src/components/HeadCommonNext.astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/components/HeadCommon.astro b/website/src/components/HeadCommon.astro index 0b03c29fe..fe8d34bb2 100644 --- a/website/src/components/HeadCommon.astro +++ b/website/src/components/HeadCommon.astro @@ -25,7 +25,7 @@ const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL - + diff --git a/website/src/components/HeadCommonNext.astro b/website/src/components/HeadCommonNext.astro index 9f323a7a3..1f878bac0 100644 --- a/website/src/components/HeadCommonNext.astro +++ b/website/src/components/HeadCommonNext.astro @@ -24,7 +24,7 @@ const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL - +