fix(Environment): move API_IMPLEMENTATION to vite.config.mjs
This commit is contained in:
parent
c257c253e1
commit
d50ff7e1e7
@ -14,7 +14,6 @@ import ApiImplementation from './services/api-implementation';
|
|||||||
// Composables
|
// Composables
|
||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
|
|
||||||
process.env.API_IMPLEMENTATION = 'django';
|
|
||||||
let apiImplementation = new ApiImplementation();
|
let apiImplementation = new ApiImplementation();
|
||||||
const api = apiImplementation.getApi();
|
const api = apiImplementation.getApi();
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ export default defineConfig({
|
|||||||
vueTemplate: true,
|
vueTemplate: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
define: { 'process.env': {} },
|
define: { 'process.env': {API_IMPLEMENTATION: 'django'} },
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
|
Loading…
Reference in New Issue
Block a user