Skip to content

Commit

Permalink
js: fix prerendering home page
Browse files Browse the repository at this point in the history
  • Loading branch information
gorenburg committed Dec 29, 2024
1 parent bce9d6a commit e3ea564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import SiteFooter from "../components/site_footer.svelte";
import SiteHeader from "../components/site_header.svelte";
import SiteFooter from "../components/site_footer.svelte"
import SiteHeader from "../components/site_header.svelte"
let { children } = $props()
</script>
Expand Down
4 changes: 2 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const config = {
pages: 'build',
assets: 'build',
strict: false,
fallback: 'index.html'
fallback: '404.html'
}),
prerender: {
entries: [
Expand All @@ -49,7 +49,7 @@ const config = {
handleHttpError: 'warn'
},
paths: {
base: process.argv.includes('dev') ? '' : ''
base: ''
}
},

Expand Down

0 comments on commit e3ea564

Please sign in to comment.