Merge pull request 'fix(Environment): move API_IMPLEMENTATION to vite.config.mjs' (#3) from fix_api_implementantion_env_#2 into main

Reviewed-on: #3
This commit is contained in:
mono 2025-03-01 22:37:43 -05:00
commit 3841e6ac7f
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))