2023-04-13 06:56:25 +00:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import solidPlugin from 'vite-plugin-solid';
|
|
|
|
import suidPlugin from "@suid/vite-plugin";
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [solidPlugin(),suidPlugin()],
|
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
proxy: {
|
2023-05-01 00:12:15 +00:00
|
|
|
'/api': 'http://localhost:8080',
|
|
|
|
'/login': 'http://localhost:8080',
|
|
|
|
'/auth-check': 'http://localhost:8080',
|
2023-04-13 06:56:25 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
root: './src/main/web',
|
|
|
|
build: {
|
|
|
|
target: 'esnext',
|
|
|
|
outDir: '../resources/static',
|
|
|
|
},
|
|
|
|
});
|