mirror of
https://github.com/mruwnik/memory.git
synced 2026-01-02 09:12:58 +01:00
30 lines
833 B
JavaScript
30 lines
833 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/ui/',
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
// Proxy API requests to backend during development
|
|
'/register': 'http://localhost:8000',
|
|
'/authorize': 'http://localhost:8000',
|
|
'/token': 'http://localhost:8000',
|
|
'/auth': 'http://localhost:8000',
|
|
'/health': 'http://localhost:8000',
|
|
'/email-accounts': 'http://localhost:8000',
|
|
'/calendar-accounts': 'http://localhost:8000',
|
|
'/article-feeds': 'http://localhost:8000',
|
|
'/github': 'http://localhost:8000',
|
|
'/google-drive': 'http://localhost:8000',
|
|
},
|
|
},
|
|
})
|