Skip to content

Commit

Permalink
Update config for GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhincore committed Sep 20, 2024
1 parent ff85039 commit 30f9bbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ const config = {
preprocess: vitePreprocess(),

kit: {
adapter: adapter(),
adapter: adapter({
fallback: "404.html",
}),
prerender: {
origin: process.env.ORIGIN,
},
paths: {
base: process.argv.includes("dev") ? "" : process.env.BASE_PATH,
},
alias: {
$lib: "./src/lib",
$assets: "./src/assets",
Expand Down

0 comments on commit 30f9bbc

Please sign in to comment.