diff --git a/config.js b/config.js index ac35cb59..410bef95 100755 --- a/config.js +++ b/config.js @@ -1,5 +1,8 @@ const one_day = 1440; -const api_url = import.meta.env.VITE_API_URL; +import { loadEnv } from 'vite'; + +const env = loadEnv(process.cwd()); +const api_url = env.VITE_API_URL; const config = { title: "Project Mariupol",