config(Deploy): use environment to config api server.

This commit is contained in:
2025-04-04 18:28:10 -05:00
parent 8a855be105
commit 459a028891
4 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import Api from './api';
class ApiImplementation {
constructor() {
const implementation = process.env.API_IMPLEMENTATION;
const implementation = import.meta.env.VITE_API_IMPLEMENTATION;
let apiImplementation;
if (implementation === 'django') {
apiImplementation = new DjangoApi();