sanity-io / next-sanity

Sanity.io toolkit for Next.js

Home Page:https://www.sanity.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Studio breaks at `/studio` URL with experimentalFeature: ‘windowHistorySupport: true’

simonhrogers opened this issue · comments

The studio breaks at /studio URL with experimentalFeature: windowHistorySupport: true.

Also, if you circumvent by visiting '/studio/structure' for e.g., then the studio will reload on each route change.

To Reproduce

next.config.js:

  experimental: {
    taint: true,
    windowHistorySupport: true,
  },

Steps to reproduce the behavior:

  1. Go to 'http://localhost:3000/studio'
  2. Click on 'anything'
  3. The page reloads

Which versions of Sanity are you using?

Present with latest version of Sanity studio and Next 14.0.3

Confirmed happening Next 14.0.3, and confirmed fixed by upgrading to 14.0.4 and 14.1.0 👍