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 96cfcb3 commit 212463a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const one_day = 1440;
import { loadEnv } from 'vite';
import dotenv from 'dotenv';
dotenv.config();

// 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 api_url = process.env.VITE_API_URL;

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

0 comments on commit 212463a

Please sign in to comment.