Skip to content

Studio v3 ignoring basePath on build. #3592

Discussion options

You must be logged in to vote

@jozefini I had the same issue, and I think you have to set the basePath in sanity.cli.[js|ts] as well:

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',
  },
});

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jozefini
Comment options

Answer selected by kmelve
Comment options

You must be logged in to vote
1 reply
@jh3y
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants