Skip to content

Commit

Permalink
fix: studio route should not be prerendered as it's a dynamic spa rou…
Browse files Browse the repository at this point in the history
…te (#153)
  • Loading branch information
kmelve authored May 16, 2024
1 parent 8562a06 commit 0926f9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sanity-astro/src/studio/studio-route.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
import { StudioComponent } from "./studio-component"
// Astro will warn about this being ignore, but it has to be there.
export async function getStaticPaths() {
return [{ params: { path: "admin" } }]
}
export const prerender = true
// This route needs to run in "SPA" mode, so we need to set `prerender` to `false`
export const prerender = false
---

<!doctype html>
Expand Down

0 comments on commit 0926f9f

Please sign in to comment.