Skip to content

Commit

Permalink
Prerender pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlena committed Nov 2, 2023
1 parent db95cd8 commit 2778d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
7 changes: 4 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ const config = {
preprocess: vitePreprocess(),

kit: {
adapter: adapter({
fallback: 'index.html'
}),
adapter: adapter(),
prerender: {
entries: ['*', '/customers/citech-sensors', '/customers/swisssign-group', '/customers/xovis']
},
csp: {
directives: {
'default-src': ['self'],
Expand Down

0 comments on commit 2778d7e

Please sign in to comment.