doorman/packages/doorman-ui/vite.config.ts
Martin Dimitrov 7eacce0c61
All checks were successful
Build and push image for doorman-homeassistant / docker (push) Successful in 51s
Build and push Doorman UI / API / docker (push) Successful in 1m28s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 8s
add error page and favicon
2024-11-02 15:11:45 -07:00

24 lines
501 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import svgrPlugin from 'vite-plugin-svgr';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), viteTsconfigPaths(), svgrPlugin()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
host: "0.0.0.0",
port: 3005
},
build: {
outDir: "dist",
},
});