Skip to content

Commit

Permalink
chore: configure correct prerendering strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnphanquang committed Dec 12, 2024
1 parent 6fa0971 commit 136109d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions sites/docs/src/routes/(site)/docs/[id=pkg]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { getDocsContent } from '$packages';

import type { PageLoad } from './$types';

export const prerender = false;

export const load: PageLoad = async ({ data, params: { id } }) => {
return {
...data,
Expand Down
1 change: 0 additions & 1 deletion sites/docs/src/routes/(site)/search/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { PageLoad } from './$types';

export const prerender = false;

export const load: PageLoad = ({ url }) => {
return {
query: url.searchParams.get('q') || '',
Expand Down
1 change: 1 addition & 0 deletions sites/docs/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
kit: {
prerender: {
origin: 'https://svelte-put.vnphanquang.com',
crawl: true,
},
adapter: adapter({
routes: {
Expand Down

0 comments on commit 136109d

Please sign in to comment.