Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
popovvasile committed May 5, 2024
1 parent c4c80d5 commit 96cfcb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const one_day = 1440;
require('dotenv').config();
import { loadEnv } from 'vite';

const api_url = process.env.VITE_API_URL;
// Assuming 'development' as default mode
const mode = process.env.NODE_ENV || 'development';
const env = loadEnv(mode, process.cwd(), '');

const api_url = env.VITE_API_URL;

const config = {
title: "Project Mariupol",
Expand Down

0 comments on commit 96cfcb3

Please sign in to comment.