Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/DonaldReddy/cosmoXplore int…
Browse files Browse the repository at this point in the history
…o techport
  • Loading branch information
DonaldReddy committed May 25, 2024
2 parents 532ee50 + ea09d16 commit 27310b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .env.demo
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Environment Variables for Email service.

VITE_SERVICE_ID=
VITE_TEMPLATE_ID=
VITE_PUBLIC_KEY=
VITE_PUBLIC_KEY=

# Environment Variables for NASA API call.

VITE_API_KEY=
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ node_modules/
# Lock files
package-lock.json
bun.lockb

logs
*.log
npm-debug.log*
Expand Down
2 changes: 1 addition & 1 deletion src/components/Apod/Apod.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Apod() {

try {

let response = await fetch("https://api.nasa.gov/planetary/apod?api_key=eISHzmGbQk7EMWv9NTlVtvzZVmeLKPUoL3uKMSPJ")
let response = await fetch(`https://api.nasa.gov/planetary/apod?api_key=${import.meta.env.VITE_API_KEY}`)

response = await response.json();

Expand Down

0 comments on commit 27310b8

Please sign in to comment.