File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import babel from "vite-plugin-babel"
88import { iconsSpritesheet } from "vite-plugin-icons-spritesheet"
99import tsconfigPaths from "vite-tsconfig-paths"
1010
11- export default defineConfig ( {
11+ export default defineConfig ( ( { mode } ) => ( {
1212 plugins : [
1313 tailwindcss ( ) ,
1414 // Run the react-compiler on .tsx files only when bundling
@@ -37,11 +37,13 @@ export default defineConfig({
3737 withTypes : true ,
3838 formatter : "biome" ,
3939 } ) ,
40- contentCollections ( ) ,
40+ // Only load content-collections plugin in development
41+ // In production, we load pre-generated docs from generated-docs/
42+ ...( mode === "development" ? [ contentCollections ( ) ] : [ ] ) ,
4143 ] ,
4244 server : {
4345 open : true ,
4446 // biome-ignore lint/nursery/noProcessEnv: Its ok to use process.env here
4547 port : Number ( process . env . PORT || 4280 ) ,
4648 } ,
47- } )
49+ } ) )
You can’t perform that action at this time.
0 commit comments