refactor(nuxt): make nitro preset conditional
set nitro preset to `bun` in production, otherwise keep `node-server`
This commit is contained in:
		
							parent
							
								
									ab49836a08
								
							
						
					
					
						commit
						6a65781950
					
				| @ -84,10 +84,10 @@ export default defineNuxtConfig({ | ||||
| 		esbuild: { | ||||
| 			options: { | ||||
| 				minify: true, | ||||
| 				sourceMap: "inline", | ||||
| 				// sourceMap: "inline",
 | ||||
| 			}, | ||||
| 		}, | ||||
| 		preset: "node-server", | ||||
| 		preset: process.env.NODE_ENV == "production" ? "bun" : "node-server", | ||||
| 	}, | ||||
| 	routeRules: { | ||||
| 		"/": cac, | ||||
| @ -161,4 +161,11 @@ export default defineNuxtConfig({ | ||||
| 			exclude: ["./.nuxt/types/auth.d.ts"], | ||||
| 		}, | ||||
| 	}, | ||||
| 	imports: { | ||||
| 		autoImport: true, | ||||
| 
 | ||||
| 		dirsScanOptions: { | ||||
| 			types: true, | ||||
| 		}, | ||||
| 	}, | ||||
| }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user