pilotwings/frontend/main.ts

11 lines
308 B
TypeScript

import App from './App.vue'
import { createApp } from 'vue'
import router from './router'
const app = createApp(App)
app.config.globalProperties.$api = import.meta.env.PROD
? `${import.meta.env.BASE_URL}api`
: `http://localhost:${import.meta.env.API_PORT ?? 5000}/api`
app.use(router)
app.mount('#app')