Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
import { sceneSiteConfig } from './scripts/scene-source.mjs';
import { VIEWER_THREE_ALIAS } from './scripts/viewer-three-alias.mjs';
import { workbenchContrast, workbenchTheme } from './src/lib/shiki-contrast.ts';
// Scene runtimes are built and staged outside this graph (scripts/scene-runtime.mjs, scripts/scene-pack.mjs);
// the site only learns which are staged (scripts/scene-source.mjs).
const scene = sceneSiteConfig();
export default defineConfig({
site: 'https://kilnstudio.tools',
output: 'static',
trailingSlash: 'always',
build: { format: 'directory', inlineStylesheets: 'always' },
integrations: [react()],
markdown: { shikiConfig: { theme: workbenchTheme, wrap: false, transformers: [workbenchContrast] } },
vite: {
plugins: [tailwindcss(), ...scene.plugins],
resolve: { alias: [VIEWER_THREE_ALIAS] },
build: { assetsInlineLimit: 0 },
// `astro preview --port N` serves on N or stops; it never moves to the next free port
// (site-build/ops/preview.ps1 prints its URLs before the server starts).
preview: { strictPort: true },
},
});