forked from sagnik/Project_Velocity
fix: Added Velocity Backend to Ingress Computer with Elastic IP (#21)
Co-authored-by: Sagnik <sagnik7896@gmail.com> Reviewed-on: sagnik/Project_Velocity#21
This commit is contained in:
2
app/dist/index.html
vendored
2
app/dist/index.html
vendored
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Velocity WebOS</title>
|
||||
<script type="module" crossorigin src="./assets/index-CJRJmEe7.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-BYTPd1oW.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-UA0RXBVG.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const rawApiBase = import.meta.env.VITE_API_URL?.trim();
|
||||
const DEPLOYED_BACKEND_ORIGIN = 'https://54.152.236.10';
|
||||
const DEPLOYED_BACKEND_ORIGIN = 'https://api.desineuron.in';
|
||||
|
||||
function getBrowserOrigin() {
|
||||
if (typeof window !== 'undefined' && window.location?.origin) {
|
||||
|
||||
@@ -3,10 +3,15 @@ import react from "@vitejs/plugin-react"
|
||||
import { defineConfig } from "vite"
|
||||
import { inspectAttr } from 'kimi-plugin-inspect-react'
|
||||
|
||||
const backendProxyTarget = process.env.VITE_BACKEND_PROXY_TARGET?.trim() || "https://api.desineuron.in"
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [inspectAttr(), react()],
|
||||
optimizeDeps: {
|
||||
exclude: ['@mediapipe/tasks-vision'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
@@ -17,18 +22,18 @@ export default defineConfig({
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "https://54.152.236.10",
|
||||
target: backendProxyTarget,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
ws: true,
|
||||
},
|
||||
"/assets": {
|
||||
target: "https://54.152.236.10",
|
||||
target: backendProxyTarget,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
"/vault": {
|
||||
target: "https://54.152.236.10",
|
||||
target: backendProxyTarget,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user