Interesting issue -- Log stream causes NextJS Edge runtime app to fail
This is kind of an intriguing one.....
1. App deploys fine via
wrangler pages deploy .vercel/output/static
2. I can hit the side all is dandy...
3. Go to the deployment UI, go to the "Real-time logs" section, click "Begin Log Stream"
4. Log flows begin to appear -- but now every request is an HTTP 500
5. Even after ending the log stream, the worker appears to be in a broken state and continues to throw HTTP 500s
6. Wrangler tail does not show any useful error messages:
The annoying bit is that without any code change a re-deployment ends up fixing the issue -- but I then have to wait for a full build/upload cycle (which is not that bad because of caching but still, my app is broken until I do this)
dev: https://nameplace.pages.dev/
deployment id: 0877b232-f464-44fb-bd88-fa620eb21341
account id: f1087e918dcedfd9575e5e595a8178134 Replies
Do you have smart placement on? If so, sadly known issue we're hoping they address soon
I do have smart placement on, Ill turn that off now. Just saw that being discussed on another thread in a quite different context
Thanks for the quick response
I need to re-deploy from the CLI to have that take effect, right?
Yea changing smart placement would only take effect on the next deployment (cli, git, etc)
Thanks a lot ill mark this as solved
Ok that definitely resolved my issue