Skip to content

Commit

Permalink
add: var env and config
Browse files Browse the repository at this point in the history
  • Loading branch information
hudaputrasantosa committed Mar 31, 2024
1 parent 0a6c72c commit ffc2488
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
VITE_REACT_STORAGE_BUCKET=
VITE_REACT_MESSAGE_SENDER_ID=
VITE_REACT_ID=
VITE_REACT_MEASUREMENT_ID=
VITE_REACT_MEASUREMENT_ID=
VITE_REACT_NOCODE_API_KEY=
File renamed without changes.
4 changes: 2 additions & 2 deletions src/pages/About/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from "../../response/about";
import { useEffect, useState } from "react";
import { doc, getDoc, updateDoc } from "firebase/firestore";
import db from "../../helpers/VisitorCounter";
import db from "../../config/firebase";

const About = () => {
const [visitor, setVisitor] = useState();
Expand All @@ -25,7 +25,7 @@ const About = () => {
});
})
.catch((err) => {
console.log("no", err);
alert("error increment counter : ", err);
});
}, []);

Expand Down
3 changes: 1 addition & 2 deletions src/pages/Blogs/hook/useFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const useFetch = () => {
const [data, setData] = useState();
const [error, setError] = useState(null);
const [loading, setLoading] = useState(false);
const baseUrl =
"https://v1.nocodeapi.com/hudaputrasantosa/medium/GtTjqSVdQmiXkhVC";
const baseUrl = import.meta.env.VITE_REACT_NOCODE_API_KEY;

useEffect(() => {
(async function () {
Expand Down

0 comments on commit ffc2488

Please sign in to comment.