Skip to content

Commit

Permalink
disable prerender
Browse files Browse the repository at this point in the history
nested routes are not reloading with prerendering enabled
  • Loading branch information
ananthakumaran committed Jul 8, 2023
1 parent f8173f8 commit f40fd15
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const prerender = true;
export const prerender = false;
export const ssr = false;

import "../app.scss";
Expand Down
2 changes: 0 additions & 2 deletions src/routes/assets/gain/[slug]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { PageLoad } from "./$types";

export const prerender = false;

export const load: PageLoad = async ({ params }) => {
return {
name: params.slug
Expand Down
2 changes: 0 additions & 2 deletions src/routes/ledger/editor/[slug]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { PageLoad } from "./$types";

export const prerender = false;

export const load: PageLoad = async ({ params }) => {
return {
name: params.slug
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config = {
pages: "web/static",
assets: "web/static",
out: "web/static",
fallback: "app.html"
fallback: "index.html"
}),
paths: {
assets: host + "/static",
Expand Down

0 comments on commit f40fd15

Please sign in to comment.