I have this organization in my routes and everything works perfectly on my site but when I do the deployment I get 404 on the root page..
/page
[slug].tsx
index.tsx
/page/blue, /page/red those are good but /page... show 404 in deploy,local worws fine
I have this in my slug code: `export async function getStaticPaths()
return {
paths: [
{ params: { slug: 'red' } },
{ params: { slug: 'blue' } }
],
fallback: false,
};`
this works when your url is /page/blue, /page/red but your url is /page that show 404 page not found, evething works in my local but when i make deploy always show 404, I dont know why... please any help thanks...
i tried this:
export async function getStaticPaths()
return {
paths: [
{ params: { slug: 'red' } },
{ params: { slug: 'blue' } },
{ params: { slug: '' } }
],
fallback: false,
};`
and nothing