Skip to content

Commit

Permalink
single parent env loader added for frontend - nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusj committed May 17, 2024
1 parent fdf6f10 commit 93f2087
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const dotenv = require('dotenv');
const withTM = require('next-transpile-modules')(['react-syntax-highlighter']);

// Load environment variables from a specific file in the parent directory
dotenv.config({ path: '../.env' });

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
Expand Down
12 changes: 12 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@mui/material": "^5.13.0",
"@reduxjs/toolkit": "^1.9.5",
"axios": "^1.4.0",
"dotenv": "^16.4.5",
"firebase": "^9.22.0",
"firebase-admin": "^11.8.0",
"moment": "^2.29.4",
Expand Down

0 comments on commit 93f2087

Please sign in to comment.