✨ Add SPA to the Drive project for further usage
This commit is contained in:
		
							
								
								
									
										41
									
								
								DysonNetwork.Drive/Client/vite.config.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								DysonNetwork.Drive/Client/vite.config.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| import { fileURLToPath, URL } from 'node:url' | ||||
|  | ||||
| import { defineConfig } from 'vite' | ||||
| import vue from '@vitejs/plugin-vue' | ||||
| import vueJsx from '@vitejs/plugin-vue-jsx' | ||||
| import vueDevTools from 'vite-plugin-vue-devtools' | ||||
| import tailwindcss from '@tailwindcss/vite' | ||||
|  | ||||
| process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' | ||||
|  | ||||
| // https://vite.dev/config/ | ||||
| export default defineConfig({ | ||||
|   base: '/', | ||||
|   plugins: [vue(), vueJsx(), vueDevTools(), tailwindcss()], | ||||
|   resolve: { | ||||
|     alias: { | ||||
|       '@': fileURLToPath(new URL('./src', import.meta.url)), | ||||
|     }, | ||||
|   }, | ||||
|   build: { | ||||
|     rollupOptions: { | ||||
|       output: { | ||||
|         entryFileNames: `assets/[name].js`, | ||||
|         chunkFileNames: `assets/[name].js`, | ||||
|         assetFileNames: `assets/[name].[ext]`, | ||||
|       }, | ||||
|     }, | ||||
|   }, | ||||
|   server: { | ||||
|     proxy: { | ||||
|       '/api': { | ||||
|         target: 'http://localhost:5216', | ||||
|         changeOrigin: true, | ||||
|       }, | ||||
|       '/cgi': { | ||||
|         target: 'http://localhost:5216', | ||||
|         changeOrigin: true, | ||||
|       } | ||||
|     }, | ||||
|   }, | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user