Skip to content

Commit 333cc73

Browse files
committed
fix: static build
1 parent f09dea1 commit 333cc73

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

example/src/routes/+layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

example/svelte.config.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import adapter from '@sveltejs/adapter-static';
2-
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
1+
import adapter from "@sveltejs/adapter-static";
2+
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
33

44
/** @type {import('@sveltejs/kit').Config} */
55
const config = {
@@ -12,14 +12,18 @@ const config = {
1212
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
1313
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
1414
adapter: adapter({
15-
fallback: '200.html'
15+
pages: "build",
16+
assets: "build",
17+
fallback: undefined,
18+
precompress: false,
19+
strict: true,
1620
}),
1721

1822
alias: {
19-
'$common/*': './src/common/*',
20-
'$modules/*': './src/modules/*'
21-
}
22-
}
23+
"$common/*": "./src/common/*",
24+
"$modules/*": "./src/modules/*",
25+
},
26+
},
2327
};
2428

2529
export default config;

0 commit comments

Comments
 (0)