fix(Environment): move API_IMPLEMENTATION to vite.config.mjs #3

Merged
mono merged 1 commits from fix_api_implementantion_env_#2 into main 2025-03-01 22:37:43 -05:00
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ import ApiImplementation from './services/api-implementation';
// Composables
import { createApp } from 'vue'
process.env.API_IMPLEMENTATION = 'django';
let apiImplementation = new ApiImplementation();
const api = apiImplementation.getApi();

View File

@ -46,7 +46,7 @@ export default defineConfig({
vueTemplate: true,
}),
],
define: { 'process.env': {} },
define: { 'process.env': {API_IMPLEMENTATION: 'django'} },
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))