- vite.config base van /workshopclaudecode/ naar / - index.html canonical en OG/Twitter URLs naar workshopclaudecode.nl - public/.htaccess verwijderd (niet meer nodig zonder Apache) - preflight foutmelding generieker (niet meer hardcoded sub-pad) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13 lines
401 B
JavaScript
13 lines
401 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { editorApiPlugin } from './vite-plugin-editor-api.js'
|
|
|
|
// https://vite.dev/config/
|
|
// editorApiPlugin alleen actief in dev mode voor de Markdown editor
|
|
export default defineConfig(({ command }) => ({
|
|
plugins: [
|
|
react(),
|
|
command === 'serve' ? editorApiPlugin() : null,
|
|
].filter(Boolean),
|
|
base: '/',
|
|
}))
|