Skip to content

Commit

Permalink
removed env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rupeshpadhye committed Jul 11, 2020
1 parent e3cecd5 commit eef911d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion server/.env

This file was deleted.

3 changes: 1 addition & 2 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import bodyParser from 'body-parser'
import express from 'express'
import path from 'path'
import proxy from 'express-request-proxy'
import {API_KEY} from "@env"
const app = express()


Expand Down Expand Up @@ -33,7 +32,7 @@ router.use('/api/*', (req, res, next) => {
proxy({
url: 'https://newsapi.org/v2' + '/*',
query: {
apiKey: API_KEY
apiKey: process.env.API_KEY
},
timeout: 60000,
headers: {}
Expand Down

0 comments on commit eef911d

Please sign in to comment.