prezly / theme-nextjs-bea

News site built with NextJS, Typescript and Prezly SDK
https://theme-nextjs-bea-the-good-newsroom.vercel.app
MIT License
43 stars 11 forks source link

[CARE-5040] Fix - Correctly handle preview query param #1149

Closed kudlajz closed 3 months ago

kudlajz commented 3 months ago

I haven't realised we use preview parameter when previewing stories, so JSON.parse wasn't able to parse it and the fallback was only applied if the query parameter does not exist.

I've changed the parameter's name to mask, so it does not clash.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
theme-nextjs-bea-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 10:47pm
3 Ignored Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **theme-nextjs-bea-cookbook** | ⬜️ Ignored ([Inspect](https://vercel.com/prezly/theme-nextjs-bea-cookbook/3BVNALnCzNDogWuTmKyjrfQRi2zJ)) | [Visit Preview](https://theme-nextjs-bea-cookbook-git-feature-care-5040-8bf05f-prezly1.vercel.app) | | May 16, 2024 10:47pm | | **theme-nextjs-bea-photography** | ⬜️ Ignored ([Inspect](https://vercel.com/prezly/theme-nextjs-bea-photography/9qBPKymZtdv6qcGVNAe9s1SfouVx)) | [Visit Preview](https://theme-nextjs-bea-photography-git-feature-care-50-9a3968-prezly1.vercel.app) | | May 16, 2024 10:47pm | | **theme-nextjs-bea-the-good-newsroom** | ⬜️ Ignored ([Inspect](https://vercel.com/prezly/theme-nextjs-bea-the-good-newsroom/GRZtTvMqDKY2T4ut85gBnGgveXF7)) | [Visit Preview](https://theme-nextjs-bea-the-good-newsroom-git-feature-c-d816d1-prezly1.vercel.app) | | May 16, 2024 10:47pm |