Preparing ISR Blog with Next.js and WordPress
Answered
DeliciousRiver posted this in #help-forum
Answered by Zepeto
to illustrate what @rkstlohchab was explaining, there are screenshots with all the steps here https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress
39 Replies
Can you elaborate more about the question?
@DeliciousRiver
and what are you trying to build so that i can answer
I'm going through this manual
And I stuck on step 3
I'm trying to build a blog
alright lemme have a look
@DeliciousRiver should i tell you what is enb file
or you know about it
and tell you the solution
?
I don't know what it is
so basically
in any framework the env file holds the sensitive information
for examole if u use some library the provide you a key for that to work
u need to
go to your wordpress dashboard
It's installed
which you have to fill in a specific file
in your root directory
.env.local
WORDPRESS_API_URL=...
you have to fill the key after the = sign
to illustrate what @rkstlohchab was explaining, there are screenshots with all the steps here https://github.com/vercel/next.js/tree/canary/examples/cms-wordpress
Answer
Thank you very much!
And where do I take WORDPRESS_API_URL from?
so if my domain name is
smiro.ru
, and GraphQL Endpoint is GraphQL
, then I pass smiro.ru/GraphQL