Initial commit
This commit is contained in:
parent
f844ae2262
commit
5537e8ede3
13
src/fallback.html
Normal file
13
src/fallback.html
Normal 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
1
src/routes/+layout.js
Normal file
@ -0,0 +1 @@
|
||||
export const prerender = true;
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user