feat: expand vehicle data platform capabilities
This commit is contained in:
20
vehicle-data-platform/apps/open-portal/vite.config.ts
Normal file
20
vehicle-data-platform/apps/open-portal/vite.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
fs: {
|
||||
allow: [
|
||||
searchForWorkspaceRoot(process.cwd()),
|
||||
fileURLToPath(new URL("../web/public", import.meta.url))
|
||||
]
|
||||
},
|
||||
proxy: {
|
||||
"/portal-api": "http://127.0.0.1:20310",
|
||||
"/api/v1": "http://127.0.0.1:20310",
|
||||
"/open-api": "http://127.0.0.1:20310"
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user