switch from tinacms to sanity

This commit is contained in:
2026-05-07 09:36:34 +02:00
parent bd97af838d
commit bf04f8679d
30 changed files with 10345 additions and 23187 deletions
+15 -4
View File
@@ -1,14 +1,25 @@
// @ts-check
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import { loadEnv } from 'vite';
import sanity from '@sanity/astro';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
const env = loadEnv(process.env.NODE_ENV ?? 'development', process.cwd(), '');
// https://astro.build/config
export default defineConfig({
integrations: [mdx()],
integrations: [
sanity({
projectId: env.PUBLIC_SANITY_PROJECT_ID,
dataset: env.PUBLIC_SANITY_DATASET ?? 'production',
studioBasePath: '/studio',
useCdn: false,
}),
react(),
],
vite: {
plugins: [tailwindcss()],
},
});
});