rda-v3/studio/sanity.config.ts
Calum Muir 847952228f Set studio basePath to /studio so assets resolve correctly
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>
2026-06-07 12:50:52 +00:00

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