You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to build an app that relies on draft mode and I just cannot get it to work on cloudflare using edge runtime. It seems that edge is missing some environment variables that get set in vercel.
I have a similar use case where I use cookies to enable a service but in the current state the adapter doesn't support the middleware and routing behavior that next.js uses. But @vicb said they plan to do this and I think once that is done, draft mode should work automatically or get it working with a small tweak :)
Hi @RokasVCheckatrade, I'm not sure if it will fix your problem because it might be due to middleware, but I've got a PR up that will define these environment variables on process.env.
Could you try out the prerelease in #97 (comment) and see if that helps you at all?
Hello, I'm trying to build an app that relies on draft mode and I just cannot get it to work on cloudflare using edge runtime. It seems that edge is missing some environment variables that get set in vercel.
In particular I've tracked it down to these:
This is the method that uses them: https://github.com/vercel/next.js/blob/canary/packages/next/src/server/web/get-edge-preview-props.ts
Any ideas if I'm just missing some sort of setup from my side? Or is it missing support from cloudflare side? Thanks!
The text was updated successfully, but these errors were encountered: