Hello, after carefully following the steps you gave for the authentication part, i'm getting an error 404 page not found whenever i click on "Sign in with google"
Now fetching data is very simple. You just need to do it in your server component - import Banner from "@/components/Banner"; import Product from "@/components/Product"; const fetchData = async () => { const res = await fetch("shoesdata.vercel.app/shoes"); if (!res.ok) { throw new Error("Failded to fetch data"); } return res.json(); }; export default async function Home() { const productsData = await fetchData(); return ( ); }
Oalaikumassalam, To make this project from the ground you need to know about reactjs and also need Nodejs installed in your system. After that if you follow each and every guidelines of mine it will alright to finish this project successfully.
I fixed the stripePromise error in the cartPage: const stripePromise = loadStripe(`${process.env.stripe_public_key}`); Please how can I resolve the error below? (I followed all the code you wrote but only to be getting this): Unhandled Runtime Error AxiosError: Request failed with status code 500 Call Stack settle node_modules/axios/lib/core/settle.js (19:0) XMLHttpRequest.onloadend node_modules/axios/lib/adapters/xhr.js (107:12) Also, kindly make it responsive👍🏻