Next.js Discord

Discord Forum

500 Internal Server Error at page when deploy.

Unanswered
European anchovy posted this in #help-forum
Open in Discord
European anchovyOP
Hello, I have a file architecture below in my next13 project. You can look at the xx address to examine all the files and the codes in them.
https://github.com/onurhan1337/my-website

-app
   - snippet
     - page.tsx
     - [slug]
       - page.tsx
     - [...tags]
       - page.tsx


Actually, when I run the project and try it locally, everything is fine, but when I deploy, for example, when I want to access the /snippets/tags/typescript address, I get a 500 interval server error error.

You can checkout: https://www.onurhan.dev/snippet
try to click any tag for error.

3 Replies

The structure of your project is a little messed up... If you want your tags to be generated under /snippet/tags you should place the tags file in a tags directory like this /snippet/tags/[...tags]/page.tsx
No problem ✌🏻