From 5537e8ede390bfb196f5c4f3d1713b3b7b474a62 Mon Sep 17 00:00:00 2001 From: Fabio Date: Tue, 25 Mar 2025 13:59:23 +0100 Subject: [PATCH] Initial commit --- src/fallback.html | 13 +++++++++++++ src/routes/+layout.js | 1 + svelte.config.js | 17 +++++++++-------- 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 src/fallback.html create mode 100644 src/routes/+layout.js diff --git a/src/fallback.html b/src/fallback.html new file mode 100644 index 00000000..72ad0cec --- /dev/null +++ b/src/fallback.html @@ -0,0 +1,13 @@ + + + + + f1rq.ovh + + + + + \ No newline at end of file diff --git a/src/routes/+layout.js b/src/routes/+layout.js new file mode 100644 index 00000000..c8cacf08 --- /dev/null +++ b/src/routes/+layout.js @@ -0,0 +1 @@ +export const prerender = true; \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 88a1190e..a205f4fa 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -2,13 +2,14 @@ import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ const config = { - kit: { - adapter: adapter({ - pages: 'dist', // Output directory - assets: 'dist', - fallback: undefined, - }), - } + kit: { + adapter: adapter({ + pages: 'dist', + assets: 'dist', + fallback: 'fallback.html', // Specify the fallback page + strict: false // Allow dynamic routes + }), + } }; -export default config; +export default config; \ No newline at end of file