sst / open-next

Open source Next.js serverless adapter
https://open-next.js.org
MIT License
3.73k stars 112 forks source link

Preview mode does not work for Next 12 from open-next 2.2.0 onwards #339

Open breningham opened 6 months ago

breningham commented 6 months ago

As discussed in Discord https://discord.com/channels/983865673656705025/1186653005945245746

TL;DR: as of open-next 2.2.0 Next 12's preview mode does not work, when accessing a route that sets the preview mode cookies (e.g /api/set-preview?slug=redirect-me-to-here), the initial preview mode cookies are set, but when navigating to the resulting page, it 404's and preview cookies are unset.

open-next 2.1.5 works as expected.

54nd10 commented 2 months ago

Having the same issue with Next 14 just no 404 any updates?

conico974 commented 2 months ago

It does work for me in V3 with next 14. ( Not tested yet in next 12)