colbyfayock / next-wordpress-starter

📝 Bring WordPress to the static world with Next.js
https://next-wordpress-starter.spacejelly.dev
MIT License
1.19k stars 292 forks source link

Use WordPress Admin "Site URL" if available instead of package.json #173

Open colbyfayock opened 3 years ago

colbyfayock commented 3 years ago

Right now we're pulling the package.json to get the homepage, instead, try to get the wordpress site URL.

Some WP hosts seems like they lock the site URL, particularly AWS lightsail, so it would still "exist" but may not be right

should this be overrideable as an env variable? should we still have package.json support? similar, the package.json may "exist" but may not be updated

Should discuss this before working on it.

image

parag477 commented 11 months ago

I want to try working on this issue. Please assign me.

colbyfayock commented 11 months ago

yes!