set env key

This commit is contained in:
andres alcocer
2022-02-08 19:43:56 -05:00
parent c0c2b9e013
commit b2a9dbb7e0
2 changed files with 1 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ export const fetchSearchMovie = (searchTerm) => {
export const fetchNetflixOriginals = () => { export const fetchNetflixOriginals = () => {
return async (dispatch) => { return async (dispatch) => {
try { try {
console.log('PROCESSS', process.env)
const request = await axios.get( const request = await axios.get(
`/discover/tv?api_key=${process.env.API_KEY}&with_networks=213` `/discover/tv?api_key=${process.env.API_KEY}&with_networks=213`
) )

View File

@@ -7,7 +7,6 @@ const webpack = require('webpack')
var path = require('path') var path = require('path')
module.exports = () => { module.exports = () => {
console.log('process', process.env)
let envKeys = {} let envKeys = {}
if (process.env.VERCEL_ENV === 'production') { if (process.env.VERCEL_ENV === 'production') {
envKeys = { API_KEY: process.env.API_KEY } envKeys = { API_KEY: process.env.API_KEY }