Next.js Discord

Discord Forum

Preparing ISR Blog with Next.js and WordPress

Answered
DeliciousRiver posted this in #help-forum
Open in Discord
Where do I take .env.local.example from?
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
View full answer

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
and
check WPGraphQL plugin
it will provide you key
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!
@DeliciousRiver mark this question as answered
right click the message
apps>mark answered
And where do I take WORDPRESS_API_URL from?
@DeliciousRiver 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