2024-11-02 18:16:32 +00:00
|
|
|
import App from './App.vue'
|
2024-11-02 21:43:27 +00:00
|
|
|
import { createApp } from 'vue'
|
2024-11-02 18:16:32 +00:00
|
|
|
import router from './router'
|
|
|
|
|
|
|
|
const app = createApp(App)
|
2024-11-02 21:43:27 +00:00
|
|
|
app.config.globalProperties.$api = import.meta.env.PROD
|
|
|
|
? `${import.meta.env.BASE_URL}api`
|
|
|
|
: `http://localhost:${import.meta.env.API_PORT ?? 5000}/api`
|
2024-11-02 18:16:32 +00:00
|
|
|
app.use(router)
|
|
|
|
app.mount('#app')
|