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
It would be great if Next.js 'draft mode' could be used to its full potential by allowing the SDK to switch between using a preview context ID and a live context ID depending on the mode. This would allow a single app in Vercel to serve as both an editing host and a live host. When draft mode is enabled, SSG should be disabled and the preview ID should be used.
Sure, I could probably hack this into our current code, but I can't be 100% sure what the content SDK is doing with the context ID at runtime so I can't know how all dependent systems might behave.
Request is for this to either be a core feature of the SDK (e.g. environment vars can contain both IDs) or for it to at least be a supported configuration with some guidance on implementing it in our own projects.
The result would be a huge reduction in Vercel project/site/pipeline configuration for projects that use external editing hosts.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Description
It would be great if Next.js 'draft mode' could be used to its full potential by allowing the SDK to switch between using a preview context ID and a live context ID depending on the mode. This would allow a single app in Vercel to serve as both an editing host and a live host. When draft mode is enabled, SSG should be disabled and the preview ID should be used.
Sure, I could probably hack this into our current code, but I can't be 100% sure what the content SDK is doing with the context ID at runtime so I can't know how all dependent systems might behave.
Request is for this to either be a core feature of the SDK (e.g. environment vars can contain both IDs) or for it to at least be a supported configuration with some guidance on implementing it in our own projects.
The result would be a huge reduction in Vercel project/site/pipeline configuration for projects that use external editing hosts.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions