From 22557f3fcd2c3e6237603c39db207e7e7cecf275 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Mon, 26 Feb 2024 18:23:17 -0800 Subject: [PATCH] removed api keys from public file --- Websites/jefes-nextjs/.env | 4 +++- Websites/jefes-nextjs/app/components/Reviews/page.tsx | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Websites/jefes-nextjs/.env b/Websites/jefes-nextjs/.env index 57ef7c3..bfef839 100644 --- a/Websites/jefes-nextjs/.env +++ b/Websites/jefes-nextjs/.env @@ -6,7 +6,9 @@ # DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public" # DATABASE_URL="mysql://root:%21Plop2099341723@192.168.50.190:3306/db" -MAPS_API_KEY="https://www.google.com/maps/embed/v1/place?q=place_id:ChIJQ-7Uc0BitocRQZASTWUyN04&key=AIzaSyBS4qOnpT4llaFa_UKMpeWike3lzDvFZ1U" +MAPS_API_KEY="https://www.google.com/maps/embed/v1/place?q=place_id:ChIJQ-7Uc0BitocRQZASTWUyN04&key=AIzaSyAREyrK0fG1haeNcLFbap0kBhP9Ld2_GSU" +GOOGLE_API_KEY="AIzaSyAREyrK0fG1haeNcLFbap0kBhP9Ld2_GSU" +PLACE_ID_KEY="ChIJQ-7Uc0BitocRQZASTWUyN04" DB_HOST="aws.connect.psdb.cloud" DB_USER="11lq0wcjbxyku4zmubji" diff --git a/Websites/jefes-nextjs/app/components/Reviews/page.tsx b/Websites/jefes-nextjs/app/components/Reviews/page.tsx index 749c109..689dba4 100644 --- a/Websites/jefes-nextjs/app/components/Reviews/page.tsx +++ b/Websites/jefes-nextjs/app/components/Reviews/page.tsx @@ -2,13 +2,13 @@ import React from 'react'; import GoogleReviews from './google_reviews'; const App = () => { - const apiKey = 'AIzaSyClfOGrkQNRjDFzvnTk-W7Oeh-yyDNCXN0'; // Replace with your Google API key - const placeId = 'ChIJQ-7Uc0BitocRQZASTWUyN04'; // Replace with the Google Place ID of the location + const apiKey = ''; // Replace with your Google API key + const placeId = ''; // Replace with the Google Place ID of the location return (

Google Reviews

- +
); };