Skip to content

Commit

Permalink
refactored config file
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavanakarwade committed Dec 17, 2024
1 parent f0e59f3 commit 6fc6e4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export default defineConfig({
/* Dev. server only */
port: DEV_PORT,
},
vite: {
define: {
'process.env': process.env
}
},
integrations: [
//
sitemap(), tailwind(), react()],
Expand Down
2 changes: 1 addition & 1 deletion src/api/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fc6e4d

Please sign in to comment.