Tag: next.js
-
Not able to access .env variables in NextJS GraphQL
0 First of all, let me tell you all that I have tried all the stack overflow solutions but none are working in my case, I’m using the new version of NextJS (version 14), so I’m posting this question after going through all of the old questions so don’t marks this as duplicate. Okay coming…
-
WPGraphQL – How to fetch data based on a Where attribute?
0 I have created a post type called LearnArticles in wordpress and another post type Learn Categories. Now I have linked both of them and I can access the Learn Categories data under the Learn Articles. But when I am trying to fetch data of a particular category I am unable to find the Learn…
-
Dynamoc robots is working fine in Developmemnt mode in nextjs but not reflecting changes in Production mode
0 Need to create dynamic robots.txt file using the rewrite and API route handler, that is working fine in dev but returned cached data in Prod mode caching should disable in production mode **package.json ** `{ "name": "frontend", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev –experimental-https", "build": "next build", "start": "next start", "lint":…
-
getServerSideProps not updating until Nextjs server restart
0 My NextJS application is build with WPGraphQl and fetching query using getServerSideProps and apollo client. at first i host in vercel and it works properly but when i deploy it to my hosting it doesn’t pull / fetch the new updated data that i have changed from wordpress dashboard unit i reset my server.…
-
value from getServerSideProps not updating until Nextjs server restart
1 I thought with getServerSideProps,data will updating whenever page is reload.But in this case , it doesn’t. In my case, if admin enter this page, it will display a button to edit product. const productDetail: NextPage<Props> = ({ product }) => { //if admin enter this page <AdminCreateOrEditPrice product={product}/> //if user enter this page //display…
-
How to use dynamic variables using GraphQL in NEXTjs
0 So I am trying to build an application in which I need to pass the account as queury. How can I achieve this? My proposed solution (which is not working obviously): let account = ‘0x74c7b157af4E5418F03eb928DF309cc98CE38E66’; const GET_ACTIVE_ITEM = gql` { activeFiles( first: 5 where: {Account_contains: ${account}} ) { id tokenId ipfsHash Account Privilege }…
-
How to Integrate Stripe with Next.js, Typescript, WooCommerce, and GraphQL for a Headless E-Commerce Application?
-1 I’m currently building a headless e-commerce application using Next.js, TypeScript, WooCommerce, GraphQL, and Stripe. I want to implement Stripe for the checkout process, but I’m having trouble finding relevant documentation or tutorials that cover the integration of all these technologies together. Technologies used: Next.js TypeScript WooCommerce GraphQL Stripe I’ve successfully set up the Next.js…
-
Image Width Resizing bug (Default Image Resizes, but Article-Associated Image Stays at 900 Instead of 300)
0 I have an issue with the width resizing of my images. When I load the default image, resizing occurs. However, when I load an image associated with an article, the desired resizing doesn’t happen, and it remains at 900 instead of 300. The image is supposed to be displayed using the <FeaturedImage> component in…
-
GraphQL + nextjs : Image Width Resizing bug (Default Image Resizes, but Article-Associated Image Stays at 900 Instead of 300)
0 I have an issue with the width resizing of my images. When I load the default image, resizing occurs. However, when I load an image associated with an article, the desired resizing doesn’t happen, and it remains at 900 instead of 300. The image is supposed to be displayed using the <FeaturedImage> component in…
-
Next.JS getstaticprops revalidate not working
4 In index.js i used getStaticProps function and export it. I wanted to whenever a user visit my page, my api call will run. But i wanted to make this api call every (for example) 60 seconds, not everytime for every user. But, revalidate its not working. I deployed it on vercel. But my website…