Add SERVER_URL constant based on environment

This commit is contained in:
TwinProduction
2021-01-25 22:05:19 -05:00
parent 5755f3a699
commit 2ccd656386
3 changed files with 6 additions and 3 deletions

View File

@ -2,4 +2,6 @@ import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
export const SERVER_URL = process.env.NODE_ENV === 'production' ? '.' : 'http://localhost:8080'
createApp(App).mount('#app')