open-next icon indicating copy to clipboard operation
open-next copied to clipboard

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

Open breningham opened this issue 1 year ago • 2 comments

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.

breningham avatar Jan 03 '24 12:01 breningham

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

54nd10 avatar May 06 '24 18:05 54nd10

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

conico974 avatar May 09 '24 09:05 conico974

It should be fixed now, if that's still an issue just reopen this

conico974 avatar Sep 28 '24 11:09 conico974