19 lines
355 B
TypeScript
19 lines
355 B
TypeScript
import { defineConfig } from 'vite';
|
|
import solidPlugin from 'vite-plugin-solid';
|
|
|
|
export default defineConfig({
|
|
base: '/dashboard/',
|
|
plugins: [solidPlugin()],
|
|
server: {
|
|
port: 3002,
|
|
proxy: {
|
|
'/admin': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
});
|