Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e88477323 | |||
| 2e4aef00c4 | |||
| 3841e6ac7f | |||
| d50ff7e1e7 |
@@ -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();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class DjangoApi {
|
||||
constructor() {
|
||||
this.base = 'http://localhost:7000';
|
||||
this.base = process.env.DJANGO_BASE_URL;
|
||||
}
|
||||
|
||||
getCustomers() {
|
||||
|
||||
@@ -46,7 +46,10 @@ export default defineConfig({
|
||||
vueTemplate: true,
|
||||
}),
|
||||
],
|
||||
define: { 'process.env': {} },
|
||||
define: { 'process.env': {
|
||||
API_IMPLEMENTATION: 'django',
|
||||
DJANGO_BASE_URL: 'http://localhost:7000'
|
||||
} },
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
|
||||
Reference in New Issue
Block a user