upgraded packages in package.json file and created useWithRouter hook

This commit is contained in:
andres alcocer
2022-11-23 15:03:15 -05:00
parent c67f6359ff
commit 187e405505
5 changed files with 8234 additions and 8460 deletions

View File

@@ -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