upgraded packages in package.json file and created useWithRouter hook
This commit is contained in:
@@ -10,6 +10,7 @@ module.exports = () => {
|
||||
// call dotenv and it will return an Object with a parsed key
|
||||
const env = dotenv.config().parsed
|
||||
// reduce env variables to an oject
|
||||
console.log('ENV IS', dotenv.config())
|
||||
const envKeys = Object.keys(env).reduce((prev, next) => {
|
||||
prev[`process.env.${next}`] = JSON.stringify(env[next])
|
||||
return prev
|
||||
|
||||
Reference in New Issue
Block a user