memory/frontend/vite.config.js
Daniel O'Connell 28d4be718c todo items
2026-01-01 22:47:46 +01:00

31 lines
874 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',
'/tasks': 'http://localhost:8000',
},
},
})