cloud-fog-service-broker/cfsb-frontend/vite.config.js
ipatini 004224a225 Use backend server url
Change-Id: Ic4dc430a52a080205863ac393af2c4d903bf6578
2024-05-16 20:22:30 +03:00

20 lines
453 B
JavaScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
define: {
'process.env.VITE_BACKEND_URL': JSON.stringify(process.env.VITE_BACKEND_URL || "https://cfsb-backend.cd.nebulouscloud.eu")
}
})