From b2a9dbb7e01694f74437ca617dfe201704bd73e8 Mon Sep 17 00:00:00 2001 From: andres alcocer Date: Tue, 8 Feb 2022 19:43:56 -0500 Subject: [PATCH] set env key --- src/store/actions/index.js | 1 + webpack.config.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/actions/index.js b/src/store/actions/index.js index 06e7442..8dfb347 100644 --- a/src/store/actions/index.js +++ b/src/store/actions/index.js @@ -59,6 +59,7 @@ export const fetchSearchMovie = (searchTerm) => { export const fetchNetflixOriginals = () => { return async (dispatch) => { try { + console.log('PROCESSS', process.env) const request = await axios.get( `/discover/tv?api_key=${process.env.API_KEY}&with_networks=213` ) diff --git a/webpack.config.js b/webpack.config.js index 41119e9..be98cf6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,7 +7,6 @@ const webpack = require('webpack') var path = require('path') module.exports = () => { - console.log('process', process.env) let envKeys = {} if (process.env.VERCEL_ENV === 'production') { envKeys = { API_KEY: process.env.API_KEY }