From 1d8fbb407724bb788960156a880c79d2569138fd Mon Sep 17 00:00:00 2001 From: Antony Nasce Date: Mon, 4 May 2026 11:48:50 +0300 Subject: [PATCH 1/2] Fix SvelteKit config for trailing slash setting --- src/routes/+layout.ts | 1 + svelte.config.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 189f71e..ba58d86 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1 +1,2 @@ export const prerender = true; +export const trailingSlash = 'always'; diff --git a/svelte.config.js b/svelte.config.js index a685fd7..58367df 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -17,8 +17,7 @@ const config = { paths: { base }, - appDir: 'assets', - trailingSlash: 'always' + appDir: 'assets' } }; From 7f6e2a194b97a431e4b2ffedde7f0e526db59b67 Mon Sep 17 00:00:00 2001 From: Antony Nasce Date: Mon, 4 May 2026 13:10:56 +0300 Subject: [PATCH 2/2] Use absolute asset URLs in prerendered output --- svelte.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 58367df..ed40754 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -15,7 +15,8 @@ const config = { fallback: '404.html' }), paths: { - base + base, + relative: false }, appDir: 'assets' }