Slug working on dev but Application error: a client-side exception has occurred on prod.
Answered
Japanese littleneck posted this in #help-forum
Japanese littleneckOP
this is my file system in services with slug. It's working fine on dev but once i deploy and visit the site, the page of the slug throw application error.
this is how i implement the slug :
export default async function WellnessPackageService({
params,
}: {
params: Promise<{ slug: [number, string] }>;
}) {
const slug = (await params).slug;
const service = await getWellnessSlug(slug[0]);
this is how i implement the slug :
export default async function WellnessPackageService({
params,
}: {
params: Promise<{ slug: [number, string] }>;
}) {
const slug = (await params).slug;
const service = await getWellnessSlug(slug[0]);
Answered by Japanese littleneck
i found someone with the same problem and they downgrade their nextjs to solve it
4 Replies
Japanese littleneckOP
my slug is working in localhost with no errors. http://localhost:3000/nhd/services/wellness-package/1/male-care-package but when i deploy and visit the website, refer to this link https://nexthealth.ph/nhd/services/wellness-package/1/male-care-package.
export default async function WellnessPackageService({
params,
}: {
params: Promise<{ slug: [number, string] }>;
}) {
const slug = (await params).slug;
const service = await getWellnessSlug(slug[0]);Schneider’s Smooth-fronted Caiman
Looks like something is missing
Japanese littleneckOP
i found someone with the same problem and they downgrade their nextjs to solve it
Answer