Studio v3 ignoring basePath
on build.
#3592
-
Hello folks, I'm having a hard time making the studio work as sub path When I run On console I see 404 errors trying to fetch assets directly on root like My config is like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@jozefini I had the same issue, and I think you have to set the import { createCliConfig } from 'sanity/cli';
export default createCliConfig({
api: {
projectId: process.env.SANITY_STUDIO_API_PROJECT_ID,
dataset: process.env.SANITY_STUDIO_API_DATASET,
},
project: {
basePath: '/studio',
},
}); |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I had no joy with this either running on |
Beta Was this translation helpful? Give feedback.
@jozefini I had the same issue, and I think you have to set the
basePath
insanity.cli.[js|ts]
as well: