Initial commit

This commit is contained in:
Fabio 2025-03-25 13:59:23 +01:00
parent f844ae2262
commit 5537e8ede3
3 changed files with 23 additions and 8 deletions

13
src/fallback.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>f1rq.ovh</title>
</head>
<body>
<script>
// Redirect to Svelte's client-side router
window.location.href = '/';
</script>
</body>
</html>

1
src/routes/+layout.js Normal file
View File

@ -0,0 +1 @@
export const prerender = true;

View File

@ -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;