Mehedi
Mehedi
CDCloudflare Developers
Created by Mehedi on 1/13/2025 in #pages-help
Cloudflare & Sveltekit issue: when refresh a dynamic page throws 500 Internal error
so how should i solve this error?? this is my server code: +page.server.ts
import { pb } from '$lib/db';
import type { PageServerLoad } from './$types';
export const load = (async ({ params }) => {
const records = await pb.collection('menus').getFullList({
filter: `restaurant_id = "${params.restaurant_id}" && is_available = true`
});
return { records }; // This records come from pocketbase query
}) satisfies PageServerLoad;
import { pb } from '$lib/db';
import type { PageServerLoad } from './$types';
export const load = (async ({ params }) => {
const records = await pb.collection('menus').getFullList({
filter: `restaurant_id = "${params.restaurant_id}" && is_available = true`
});
return { records }; // This records come from pocketbase query
}) satisfies PageServerLoad;
7 replies
CDCloudflare Developers
Created by Mehedi on 1/13/2025 in #pages-help
Cloudflare & Sveltekit issue: when refresh a dynamic page throws 500 Internal error
Here is the server logs: https://jsonblob.com/1328292368818036736 @Walshy | Workers/Pages
7 replies