From b2f9dd759042f86edf3dffaa33f68cb62e00a5b5 Mon Sep 17 00:00:00 2001
From: Kevin Cameron <kevinc@arena.net>
Date: Mon, 5 Jan 2026 08:49:05 -0800
Subject: [PATCH 1/3] remove addBase

---
 create-redirects.js                   |  5 ++---
 src/lib/components/Button.svelte      |  4 +---
 src/lib/components/Carousel.svelte    |  5 ++---
 src/lib/components/Header.svelte      |  9 ++++-----
 src/lib/components/Partners.svelte    |  3 +--
 src/lib/components/Socials.svelte     |  3 +--
 src/lib/index.ts                      |  3 ---
 src/routes/+error.svelte              | 16 ++++++++--------
 src/routes/+page.svelte               | 10 ++++------
 src/routes/about-us/+page.svelte      |  5 ++---
 src/routes/aboutUs.html/+page.svelte  |  5 ++---
 src/routes/donate.html/+page.svelte   |  5 ++---
 src/routes/donate/+page.svelte        |  9 +++------
 src/routes/our-sites/+page.svelte     |  8 ++------
 src/routes/ourSites.html/+page.svelte |  5 ++---
 svelte.config.js                      |  1 -
 16 files changed, 36 insertions(+), 60 deletions(-)
 delete mode 100644 src/lib/index.ts

diff --git a/create-redirects.js b/create-redirects.js
index 7dd247a..46aeba2 100644
--- a/create-redirects.js
+++ b/create-redirects.js
@@ -12,19 +12,18 @@ const template =
     // This file is auto-generated. Do not edit directly.
     // see: ./create-redirects.js
 
-    import { addBase } from '$lib';
     import Wrapper from '$lib/components/Wrapper.svelte';
 
 </script>
 
 <svelte:head>
-    <meta http-equiv="refresh" content="0; url={addBase('{to}')}" />
+    <meta http-equiv="refresh" content="0; url={to}" />
     <title>Redirecting...</title>
 </svelte:head>
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href={addBase("{to}")}>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href={to}>here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte
index 32185e2..c5520b4 100644
--- a/src/lib/components/Button.svelte
+++ b/src/lib/components/Button.svelte
@@ -1,6 +1,4 @@
 <script lang="ts">
-    import { addBase } from "$lib/index.ts";
-
     let {
         href,
         children,
@@ -22,7 +20,7 @@
     }
 </script>
 
-<a href={addBase(href)} class={cssClass} data-test={dataTest}>
+<a href={href} class={cssClass} data-test={dataTest}>
     {@render children()}
     {#if arrow}
         →
diff --git a/src/lib/components/Carousel.svelte b/src/lib/components/Carousel.svelte
index 624d24a..eef1c68 100644
--- a/src/lib/components/Carousel.svelte
+++ b/src/lib/components/Carousel.svelte
@@ -1,7 +1,6 @@
 <script lang="ts">
     import emblaCarouselSvelte from 'embla-carousel-svelte';
-  import Autoplay from 'embla-carousel-autoplay'
-    import { addBase } from '$lib';
+    import Autoplay from 'embla-carousel-autoplay'
 
   let options = { loop: false }
   let plugins = [Autoplay()]
@@ -13,7 +12,7 @@
     <div class="embla__container">
         {#each imgs as img}
             <div class="embla__slide">
-                <img src={addBase(img)} alt="Carousel" />
+                <img src={img} alt="Carousel" />
             </div>
         {/each}
     </div>
diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte
index 651a25c..18a0e8e 100644
--- a/src/lib/components/Header.svelte
+++ b/src/lib/components/Header.svelte
@@ -1,6 +1,5 @@
 <script lang="ts">
     import { page } from '$app/stores';
-    import { addBase } from '$lib';
 
     import { m } from '$lib/paraglide/messages.js';
 
@@ -48,8 +47,8 @@
 </script>
 
 <header data-test="site-header">
-    <a href={addBase('/')} class="logo-link" data-test="site-logo-link">
-        <img class="logo" src={addBase("/layout/header/logo.min.png")} alt="">
+    <a href={'/'} class="logo-link" data-test="site-logo-link">
+        <img class="logo" src={"/layout/header/logo.min.png"} alt="">
 
         {#if currentUrl === '/'}
             <h1 class="logotype">{m['common.scn']()}</h1>
@@ -63,7 +62,7 @@
 
         showNav = !showNav;
     }}>
-        <img src={addBase("/layout/nav-hamburger.svg")} alt={m['common.toggle_nav']()}>
+        <img src={"/layout/nav-hamburger.svg"} alt={m['common.toggle_nav']()}>
     </button>
 </header>
 
@@ -71,7 +70,7 @@
     <div class="nav-items" class:show-nav={showNav}>
         {#each navItems as {href, label}}
             <a
-                href={addBase(href)}
+                href={href}
                 class="nav-link"
                 class:active={href === currentUrl}
                 onclick={(e) => {
diff --git a/src/lib/components/Partners.svelte b/src/lib/components/Partners.svelte
index 4936bb0..bcd1515 100644
--- a/src/lib/components/Partners.svelte
+++ b/src/lib/components/Partners.svelte
@@ -1,6 +1,5 @@
 <script lang="ts">
     import { m } from '$lib/paraglide/messages.js';
-    import { addBase } from '$lib';
 </script>
 
 <h2>
@@ -11,4 +10,4 @@
     {m['pages.home.partners.paragraphs.0']()}
 </p>
 
-<img src={addBase("/pages/home/scn-partner-logos.min.png")} loading="lazy" alt={m['pages.home.partners.alt']()} />
+<img src={"/pages/home/scn-partner-logos.min.png"} loading="lazy" alt={m['pages.home.partners.alt']()} />
diff --git a/src/lib/components/Socials.svelte b/src/lib/components/Socials.svelte
index 724281b..d8bcc53 100644
--- a/src/lib/components/Socials.svelte
+++ b/src/lib/components/Socials.svelte
@@ -1,6 +1,5 @@
 <script lang="ts">
     import { m } from "$lib/paraglide/messages.js";
-    import { addBase } from "$lib";
 
     // type can be "light" or "dark"
 
@@ -43,7 +42,7 @@
 <div class={cssClass}>
     {#each socials as { href, cta, src }}
         <a {href} data-test={`social-${cta.toLowerCase()}`}>
-            <img src={addBase(src[type])} alt={cta} />
+            <img src={src[type]} alt={cta} />
         </a>
     {/each}
 </div>
diff --git a/src/lib/index.ts b/src/lib/index.ts
deleted file mode 100644
index d470ab7..0000000
--- a/src/lib/index.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// place files you want to import through the `$lib` alias in this folder.
-import { base } from '$app/paths';
-export const addBase = (url: string) => url.indexOf("/") === 0 ? `${base}${url}` : url;
diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte
index 1deb572..6b449f9 100644
--- a/src/routes/+error.svelte
+++ b/src/routes/+error.svelte
@@ -1,8 +1,6 @@
 <script lang="ts">
 	import { page } from '$app/state';
 
-    import { addBase } from '$lib';
-
     import { m }     from '$lib/paraglide/messages.js';
     import Wrapper   from '$lib/components/Wrapper.svelte';
     import PageTitle from '$lib/components/Page-Title.svelte';
@@ -19,21 +17,23 @@
             description : m['pages.error.500.description'](),
             cta : m['pages.error.500.cta']()
         }
-    }
+    };
+
+    let { status = 404 as 404 | 500 } = $props();
 </script>
 
-<PageTitle title={errors[page.status].title} />
+<PageTitle title={errors[status].title} />
 
 <Wrapper>
     <h1>
-        {page.status} {errors[page.status].title}
+        {status} {errors[status].title}
     </h1>
     <p>
-        {errors[page.status].description}
+        {errors[status].description}
     </p>
     <p>
-        <a href={addBase('/')} class="button">
-            {errors[page.status].cta}
+        <a href={'/'} class="button">
+            {errors[status].cta}
         </a>
     </p>
 </Wrapper>
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index b0a679c..cd0c2fc 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -9,8 +9,6 @@
     import Panel     from '$lib/components/Panel.svelte';
     import PageTitle from '$lib/components/Page-Title.svelte';
 
-    import { addBase } from '$lib';
-
     const overview = [
         m['pages.home.overview.paragraphs.0'](),
         m['pages.home.overview.paragraphs.1'](),
@@ -48,7 +46,7 @@
 <Wrapper>
     <section class="center" data-test="home-hero">
         <Button
-            href={addBase(m['pages.home.hero.href']())}
+            href={m['pages.home.hero.href']()}
             type="wide"
             arrow={true}
             dataTest="home-hero-cta"
@@ -59,7 +57,7 @@
 
     <section data-test="home-building-image">
         <img
-            src={addBase(m['pages.home.building.src']())}
+            src={m['pages.home.building.src']()}
             alt={m['pages.home.building.alt']()}
         />
     </section>
@@ -77,7 +75,7 @@
             <div class="flex-right">
                 <Button
                     type="small"
-                    href={addBase(m['pages.home.overview.about.href']())}
+                    href={m['pages.home.overview.about.href']()}
                     arrow={true}
                     dataTest="home-overview-cta"
                 >
@@ -94,7 +92,7 @@
 
         <div class="button-row">
             {#each buttons as { href, cta, dataTest } }
-                <Button href={addBase(href)} arrow={true} dataTest={dataTest}>
+                <Button href={href} arrow={true} dataTest={dataTest}>
                     {cta}
                 </Button>
             {/each}
diff --git a/src/routes/about-us/+page.svelte b/src/routes/about-us/+page.svelte
index 3b97162..3c576e7 100644
--- a/src/routes/about-us/+page.svelte
+++ b/src/routes/about-us/+page.svelte
@@ -1,6 +1,5 @@
 <script lang="ts">
-    import { m }       from "$lib/paraglide/messages.js";
-    import { addBase } from "$lib";
+    import { m } from "$lib/paraglide/messages.js";
 
     import Wrapper   from "$lib/components/Wrapper.svelte";
     import Button    from "$lib/components/Button.svelte";
@@ -66,7 +65,7 @@
                     <p>{@html paragraph}</p>
                 {/each}
 
-                <img src={addBase(section.img.src)} alt={section.img.alt} />
+                <img src={section.img.src} alt={section.img.alt} />
             </Panel>
         </section>
     {/each}
diff --git a/src/routes/aboutUs.html/+page.svelte b/src/routes/aboutUs.html/+page.svelte
index 275358f..fb28403 100644
--- a/src/routes/aboutUs.html/+page.svelte
+++ b/src/routes/aboutUs.html/+page.svelte
@@ -2,19 +2,18 @@
     // This file is auto-generated. Do not edit directly.
     // see: ./create-redirects.js
 
-    import { addBase } from '$lib';
     import Wrapper from '$lib/components/Wrapper.svelte';
 
 </script>
 
 <svelte:head>
-    <meta http-equiv="refresh" content="0; url={addBase('/about-us')}" />
+    <meta http-equiv="refresh" content="0; url=/about-us" />
     <title>Redirecting...</title>
 </svelte:head>
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href={addBase("/about-us")}>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href=/about-us>here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/routes/donate.html/+page.svelte b/src/routes/donate.html/+page.svelte
index 60454c3..d406c13 100644
--- a/src/routes/donate.html/+page.svelte
+++ b/src/routes/donate.html/+page.svelte
@@ -2,19 +2,18 @@
     // This file is auto-generated. Do not edit directly.
     // see: ./create-redirects.js
 
-    import { addBase } from '$lib';
     import Wrapper from '$lib/components/Wrapper.svelte';
 
 </script>
 
 <svelte:head>
-    <meta http-equiv="refresh" content="0; url={addBase('/donate')}" />
+    <meta http-equiv="refresh" content="0; url=/donate" />
     <title>Redirecting...</title>
 </svelte:head>
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href={addBase("/donate")}>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href=/donate>here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/routes/donate/+page.svelte b/src/routes/donate/+page.svelte
index 1ba1977..b2595bc 100644
--- a/src/routes/donate/+page.svelte
+++ b/src/routes/donate/+page.svelte
@@ -1,8 +1,5 @@
 <script lang="ts">
-    import { base } from '$app/paths';
-
     import { m } from '$lib/paraglide/messages.js';
-    import { addBase } from '$lib';
 
     import Button    from '$lib/components/Button.svelte';
     import PageTitle from '$lib/components/Page-Title.svelte';
@@ -23,7 +20,7 @@
 
 <PageTitle title={m['pages.donate.title']()} />
 
-<div class="wave" style="--wave-url: url({`${base}/pages/donate/upsidedown-wave.min.png`})">
+<div class="wave" style="--wave-url: url(/pages/donate/upsidedown-wave.min.png)">
     <Wrapper dataTest="donate-page">
         <section class="text-center" data-test="donate">
             <h1>{m['pages.donate.header']()}</h1>
@@ -37,9 +34,9 @@
                     <input type="hidden" name="currency_code" value="USD" />
                     <button class="paypal-button">
                         <!--<img id = "paypal-graphic" src = "assets/paypal button.png" alt = "paypal button">-->
-                        <input type="image" src={addBase("/layout/paypal-button.png")} name="submit" title="Paypal donations are made to lcl@seattlecommunitynetwork.org." alt="Donate with PayPal button" />
+                        <input type="image" src={"/layout/paypal-button.png"} name="submit" title="Paypal donations are made to lcl@seattlecommunitynetwork.org." alt="Donate with PayPal button" />
                     </button>
-                    <img alt="" src={addBase("https://www.paypal.com/en_US/i/scr/pixel.gif")} width="1" height="1" />
+                    <img alt="" src={"https://www.paypal.com/en_US/i/scr/pixel.gif"} width="1" height="1" />
                 </form>
 
                 {#each buttons as { href, cta }}
diff --git a/src/routes/our-sites/+page.svelte b/src/routes/our-sites/+page.svelte
index e44c57d..8988ed1 100644
--- a/src/routes/our-sites/+page.svelte
+++ b/src/routes/our-sites/+page.svelte
@@ -6,8 +6,6 @@
     import PageTitle from "$lib/components/Page-Title.svelte";
     import Button    from "$lib/components/Button.svelte";
 
-    import { addBase } from "$lib";
-
     const detailsList = [
         m["pages.sites.details.list.0"](),
         m["pages.sites.details.list.1"](),
@@ -48,7 +46,7 @@
             <h2>{m["pages.sites.details.header"]()}</h2>
             <p>{m["pages.sites.details.paragraphs.0"]()}</p>
             <img
-                src={addBase(m["pages.sites.details.img.src"]())}
+                src={m["pages.sites.details.img.src"]()}
                 alt={m["pages.sites.details.img.alt"]()}
                 class="img-center"
             />
@@ -85,9 +83,7 @@
                 {#each locations as location}
                     <div class="location">
                         <img
-                            src={addBase(
-                                m[`pages.sites.locations.locations.${location}.src`](),
-                            )}
+                            src={m[`pages.sites.locations.locations.${location}.src`]()}
                             alt={m[`pages.sites.locations.locations.${location}.alt`]()}
                         />
 
diff --git a/src/routes/ourSites.html/+page.svelte b/src/routes/ourSites.html/+page.svelte
index 1872bb6..1070083 100644
--- a/src/routes/ourSites.html/+page.svelte
+++ b/src/routes/ourSites.html/+page.svelte
@@ -2,19 +2,18 @@
     // This file is auto-generated. Do not edit directly.
     // see: ./create-redirects.js
 
-    import { addBase } from '$lib';
     import Wrapper from '$lib/components/Wrapper.svelte';
 
 </script>
 
 <svelte:head>
-    <meta http-equiv="refresh" content="0; url={addBase('/our-sites')}" />
+    <meta http-equiv="refresh" content="0; url=/our-sites" />
     <title>Redirecting...</title>
 </svelte:head>
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href={addBase("/our-sites")}>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href=/our-sites>here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/svelte.config.js b/svelte.config.js
index 9f246c6..208ae8a 100644
--- a/svelte.config.js
+++ b/svelte.config.js
@@ -8,7 +8,6 @@ const config = {
             fallback: '404.html'
         }),
         paths: {
-            base: process.env.BASE_PATH || ''
         }
     }
 };

From 22cc8e5ce882be1b2e86b8ffd37230a66b27edef Mon Sep 17 00:00:00 2001
From: Kevin Cameron <kevinc@arena.net>
Date: Mon, 5 Jan 2026 08:59:52 -0800
Subject: [PATCH 2/3] make build happy

---
 svelte.config.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/svelte.config.js b/svelte.config.js
index 208ae8a..2d8f0e4 100644
--- a/svelte.config.js
+++ b/svelte.config.js
@@ -8,6 +8,15 @@ const config = {
             fallback: '404.html'
         }),
         paths: {
+        },
+        prerender: {
+            entries: [
+                '*',
+                '/donate',
+                '/about-us',
+                '/our-sites'
+            ],
+            handleUnseenRoutes: 'warn'
         }
     }
 };

From 4d379cb479ac3b8c3e9b5b43a0571f271f8c17e2 Mon Sep 17 00:00:00 2001
From: Kevin Cameron <kevinc@arena.net>
Date: Mon, 5 Jan 2026 09:02:22 -0800
Subject: [PATCH 3/3] fix quotes on redirect

---
 create-redirects.js                   | 2 +-
 src/routes/aboutUs.html/+page.svelte  | 2 +-
 src/routes/donate.html/+page.svelte   | 2 +-
 src/routes/ourSites.html/+page.svelte | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/create-redirects.js b/create-redirects.js
index 46aeba2..7841aa4 100644
--- a/create-redirects.js
+++ b/create-redirects.js
@@ -23,7 +23,7 @@ const template =
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href={to}>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href="{to}">here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/routes/aboutUs.html/+page.svelte b/src/routes/aboutUs.html/+page.svelte
index fb28403..06cac6f 100644
--- a/src/routes/aboutUs.html/+page.svelte
+++ b/src/routes/aboutUs.html/+page.svelte
@@ -13,7 +13,7 @@
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href=/about-us>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href="/about-us">here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/routes/donate.html/+page.svelte b/src/routes/donate.html/+page.svelte
index d406c13..29ba906 100644
--- a/src/routes/donate.html/+page.svelte
+++ b/src/routes/donate.html/+page.svelte
@@ -13,7 +13,7 @@
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href=/donate>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href="/donate">here</a>.</p>
 </Wrapper>
 
 <style>
diff --git a/src/routes/ourSites.html/+page.svelte b/src/routes/ourSites.html/+page.svelte
index 1070083..9a753c2 100644
--- a/src/routes/ourSites.html/+page.svelte
+++ b/src/routes/ourSites.html/+page.svelte
@@ -13,7 +13,7 @@
 
 <Wrapper>
     <h1>Redirecting...</h1>
-    <p>If you are not redirected automatically, please click <a href=/our-sites>here</a>.</p>
+    <p>If you are not redirected automatically, please click <a href="/our-sites">here</a>.</p>
 </Wrapper>
 
 <style>
