Builds studio/ separately during Docker build and copies output to public/studio/ so it is served as static files by the Astro Node adapter. Catch-all route redirects deep studio links back to /studio for SPA routing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
509 B
TypeScript
20 lines
509 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',
|
|
|
|
// Fill these in after running `sanity init` or creating a project at sanity.io/manage
|
|
projectId: process.env.SANITY_STUDIO_PROJECT_ID ?? '',
|
|
dataset: process.env.SANITY_STUDIO_DATASET ?? 'production',
|
|
|
|
plugins: [
|
|
structureTool(),
|
|
],
|
|
|
|
schema: {
|
|
types: schemaTypes,
|
|
},
|
|
});
|