Skip to content

Commit

Permalink
fix: Disable prerendering on redirect routes (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Dec 24, 2023
1 parent dd7f0c9 commit af814da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/components/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { redirect } from '@sveltejs/kit';

export const prerender = false;

export const load = async () => {
redirect(308, '/packages');
};
2 changes: 2 additions & 0 deletions src/routes/tools/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { redirect } from '@sveltejs/kit';

export const prerender = false;

export const load = async () => {
redirect(308, '/packages');
};

0 comments on commit af814da

Please sign in to comment.