Replies: 17 comments 39 replies
-
Seems to break with the latest version of nextjs 13.0.3. Getting an internal server error 500. @ascorbic should we continue to use the next js runtime at 4.29.1 or should we lock to 4.28.4-appdir.0 for now? |
Beta Was this translation helpful? Give feedback.
-
Hello guys 👋 |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is a Netlify issue or a problem with my own code, but I keep getting a 500 Internal Server error when trying to |
Beta Was this translation helpful? Give feedback.
-
It seems that Next.js 13's loading UI doesn't work with Netlify (i.e. React Suspense component.) My suspense component works fine locally with |
Beta Was this translation helpful? Give feedback.
-
Someone using appDir and trailingSlash with nextjs@13.1.6? Opening the url www.example.com/blog/article-a/ results in a redirect to www.example.com/blog/article-a I've also deployed the same site to vercel and there trailingSlash is respected. I get no redirect. Is this a known issue? |
Beta Was this translation helpful? Give feedback.
-
Issue: 500 Internal Server Error when deploying Next 13.4 with embed sanity studio on Netlify. Adding an embed Sanity studio on Next 13.4. causes "500: Internal Server Error". The problem seems to be specifically related to the serverActions in Next.js 13.4, as the application works fine locally and on previous versions (e.g., 13.3) on the production. Here is the log on Netlify Functions:
As a temporary workaround, setting the environment variable "__NEXT_PRIVATE_PREBUNDLED_REACT=next" resolved the issue for others. However, Netlify does not allow this particular environment variable to be set due to the prefix of (_). During investigation, I came across a discussion thread in the Netlify Support Forums that addresses a similar error: Netlify Support Forums Thread. Additionally, I noticed that there is a pull request in the Next.js GitHub repository that appears to address similar issue specifically for custom servers. It seems to have been fixed and merged on v13.4.0 but many others as well as I'm still getting the error. This might just be an issue with Next itself. Just wanted to point it for someone from Netlify to look into. Next.js PR. |
Beta Was this translation helpful? Give feedback.
-
Hi! I am trying to deploy a next 13 app using 'app' router to Netlify. I added a 'not-found.js' to the 'app' directory to create my custom 404 page so that it will be shown when user visit any invalid URL . I tried to create a repo for testing with just the starter file (npx create-next-app@latest). Without 'not-found.js', the Next default 404 page would be shown when I went to an invalid URL (https://647825f32dfd7e319f25f51d--regal-pika-910873.netlify.app/unkown): However, when I added the 'not-found.js' to 'app' directory and visited an invalid URL, the custom 404 page could not be shown. Instead, "Internal Server Error" was shown (https://647826e083bb9900089436a2--regal-pika-910873.netlify.app/unkown): I have also tried to deploy a next app using 'page' router and added '404.js' to 'page' directory and it works well(https://amazing-quokka-cb8229.netlify.app/unknown): Is there any solution if I would like creating my custom page with 'app' directory? Thank you. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi there. I just tested out some changes on a preview deployment and the serverless function seems to be crashing and I have no idea why.
https://14-134258--bikeworldmvp.netlify.app/.netlify/functions/___netlify-handler What more information do you need to help me figure out why this is happening? |
Beta Was this translation helpful? Give feedback.
-
Same issue of page reloading with app routing |
Beta Was this translation helpful? Give feedback.
-
Got error 500 when refreshing a |
Beta Was this translation helpful? Give feedback.
-
Static Images wont load on Netlify when they load on Vercel properly |
Beta Was this translation helpful? Give feedback.
-
Updated Next.js to last version 13.5.2, it is fixed.🚀 |
Beta Was this translation helpful? Give feedback.
-
I am trying to deploy Next.js 13.5.2 App but still get the following: I am using the app router and tried to deploy with GitLab integration. In the deploy logs in Netlify everything was "green" and complete. |
Beta Was this translation helpful? Give feedback.
-
Does anybody know if |
Beta Was this translation helpful? Give feedback.
-
If you update your site to Next 13, it will work on Netlify right away. All the stable features work out of the box with no changes required on your part when using the latest Netlify Next.js runtime. If you have manually installed the Netlify Next.js runtime in your package.json you will need to upgrade it, but for everyone else it will upgrade you automatically on your next deploy. However this does not include the new experimental
app
directory features. This is currently pre-release and should not be used for production.While deploying
app
directory sites to Netlify is still experimental, it already supports many of the most interesting new features, including React Server Components and streaming HTML using the edge runtime. Pages that use the edge runtime are automatically deployed to Netlify Edge Functions.This topic is for discussion of the use of
app
directory features, not general Next 13 topics. If you encounter a problem with an existing feature such as thepages
directory or middleware, then open an issue rather than commenting here.Update: you no longer need to install a special version of the runtime - the auto-installed version has appDir support enabled, though it is still experimental
Known issues
next.config.js
to rewrite to a page that uses the edge runtime. The workaround is to use middleware to rewrite, which works correctly."missing"
middleware matcher #1796Beta Was this translation helpful? Give feedback.
All reactions