From 6fc6e4d9c0151ad86f663c759846aa66173d9348 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Tue, 17 Dec 2024 19:04:33 +0530 Subject: [PATCH] refactored config file --- astro.config.mjs | 5 ----- src/api/Auth.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 6ac62f9f5..370813d1f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -34,11 +34,6 @@ export default defineConfig({ /* Dev. server only */ port: DEV_PORT, }, - vite: { - define: { - 'process.env': process.env - } - }, integrations: [ // sitemap(), tailwind(), react()], diff --git a/src/api/Auth.ts b/src/api/Auth.ts index 962b437b6..68efe5e83 100644 --- a/src/api/Auth.ts +++ b/src/api/Auth.ts @@ -229,7 +229,7 @@ export const passwordEncryption = (password: string): string => { export const encryptData = (value: any): string => { - console.log("All env variables:", import.meta.env); + console.log("All env variables:", envConfig); const CRYPTO_PRIVATE_KEY: string = `${envConfig.PUBLIC_CRYPTO_PRIVATE_KEY}`; console.log("🚀 ~ encryptData ~ CRYPTO_PRIVATE_KEY:", CRYPTO_PRIVATE_KEY)