mirror of
				https://github.com/mvvasilev/findtheti.me.git
				synced 2025-10-31 18:08:52 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { defineConfig } from 'vite'
 | |
| import react from '@vitejs/plugin-react'
 | |
| 
 | |
| import { fileURLToPath, URL } from 'node:url'
 | |
| 
 | |
| // https://vitejs.dev/config/
 | |
| export default defineConfig({
 | |
|   plugins: [react()],
 | |
|   server: {
 | |
|     proxy: {
 | |
|       "/api": {
 | |
|         target: "http://localhost:8080",
 | |
|         changeOrigin: true,
 | |
|         secure: false,
 | |
|       },
 | |
|     }
 | |
|   },
 | |
|   resolve: {
 | |
|     alias: [
 | |
|       { find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) }
 | |
|     ]
 | |
|   }
 | |
| })
 |