How do we deploy a v3 studio for a static site? #3922
Unanswered
dwkns
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using 11ty to build a static site.
I'd like to host my Sanity Studio on
mysite.com/studio
.I've set up
sanity build
to output to the correct folder, but when you visitmysite.com/studio
there are 404's and the studio doesn't load.Looking in the generated HTML file all the links are relative to the site root eg
="/static/manifest.webmanifest"
, not the containing folder where I want them="/studio/static/manifest.webmanifest"
.Doesn't appear to have any effect.
If I manually change the links to be relative in the generated HTML file to
="./static/manifest.webmanifest"
or even="/studio/static/manifest.webmanifest"
and then visitmysite.com/studio
the studio loads but I get anTool not found: studio
error.I can click on
Desk
and then use the studio but it appears that the studio thinks it should be at the root URL/
Question 1
Can I specify to the sanity build command I want relative, not absolute links? If so how?
Question 2
How do I tell the Studio it should be at
/studio/
not at/
OR
If I'm going about this the wrong way, how should I be including my Studio in a static build?
Beta Was this translation helpful? Give feedback.
All reactions