Without basePath the built studio references /static/*.js from the domain root, but files live at /studio/static/*.js causing a blank page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
443 B
TypeScript
20 lines
443 B
TypeScript
import { defineConfig } from 'sanity';
|
|
import { structureTool } from 'sanity/structure';
|
|
import { schemaTypes } from './schemaTypes';
|
|
|
|
export default defineConfig({
|
|
name: 'rda-v3',
|
|
title: 'Highland Group RDA',
|
|
basePath: '/studio',
|
|
|
|
projectId: process.env.SANITY_STUDIO_PROJECT_ID ?? '',
|
|
dataset: process.env.SANITY_STUDIO_DATASET ?? 'production',
|
|
|
|
plugins: [
|
|
structureTool(),
|
|
],
|
|
|
|
schema: {
|
|
types: schemaTypes,
|
|
},
|
|
});
|