Use backend server url
Change-Id: Ic4dc430a52a080205863ac393af2c4d903bf6578
This commit is contained in:
parent
a84a07c7df
commit
004224a225
@ -1,2 +1,2 @@
|
||||
VUE_APP_BACKEND_URL=http://127.0.0.1:8001
|
||||
VITE_BACKEND_URL=http://127.0.0.1:8001
|
||||
VUE_APP_BACKEND_URL=https://cfsb-backend.cd.nebulouscloud.eu
|
||||
VITE_BACKEND_URL=https://cfsb-backend.cd.nebulouscloud.eu
|
||||
|
@ -132,7 +132,7 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
export default {
|
||||
name: 'App',
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
import HierarchicalCategoryList from "@/components/HierarchicalCategoryList.vue";
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
export default {
|
||||
data() {
|
||||
|
@ -45,7 +45,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
import Chart from 'chart.js/auto';
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
export default {
|
||||
data() {
|
||||
|
@ -55,7 +55,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export const backendURL = import.meta.env.VITE_BACKEND_URL;
|
||||
export const backendURL = process.env.VITE_BACKEND_URL;
|
||||
const apiURL = backendURL;
|
||||
import {useRouter} from 'vue-router';
|
||||
|
||||
|
@ -12,5 +12,8 @@ export default defineConfig({
|
||||
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")
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user