mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
19 lines
425 B
TypeScript
19 lines
425 B
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
root: './web',
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:6544',
|
|
changeOrigin: true,
|
|
rewrite: path => path.replace(/^\/api/, ''),
|
|
},
|
|
},
|
|
},
|
|
});
|