mirror of https://github.com/gabehf/Koito.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
685 B
29 lines
685 B
import { reactRouter } from "@react-router/dev/vite";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
const isDocker = process.env.BUILD_TARGET === 'docker';
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
|
|
server: {
|
|
proxy: {
|
|
'/apis': {
|
|
target: 'http://localhost:4110',
|
|
changeOrigin: true,
|
|
},
|
|
'/images': {
|
|
target: 'http://localhost:4110',
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
...(isDocker
|
|
? { 'react-dom/server': 'react-dom/server.node' }
|
|
: {}),
|
|
},
|
|
},
|
|
}); |