Skip to content

Commit

Permalink
prerender with fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mnyrop committed Mar 5, 2024
1 parent df3a4a1 commit 4a3519c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
2 changes: 0 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
export const prerender = true;
import { siteTitle, siteDescription } from '$lib/vars/constants.js';
import { timestamp } from '$lib/BuildTimeStamp.svelte';
import { base } from '$app/paths';
Expand Down
6 changes: 5 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import adapter from '@sveltejs/adapter-static';
const config = {
kit: {
adapter: adapter({
fallback: '404.html'
pages: 'build',
assets: 'build',
fallback: '404.html',
precompress: false,
strict: true
}),
paths: {
base: '/viewpoint'
Expand Down

0 comments on commit 4a3519c

Please sign in to comment.