11 lines
413 B
TypeScript
11 lines
413 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
base: './', // relative asset paths, so the built page works under any URL prefix
|
|
// `npm run dev`: the backend (or server_stub.py) answers /api on port 8000.
|
|
server: { proxy: { '/api': 'http://127.0.0.1:8000' } },
|
|
})
|