Error when run start
Last updated
Was this helpful?
Last updated
Was this helpful?
NEXT_PUBLIC_WORDPRESS_URL.
If you are getting an error like this then you are probably having an overlap between the WordPress url and the Nextjs frontend page url.
Please check 1 of the following cases:
Update the NEXT_PUBLIC_WORDPRESS_URL
value with your WordPress site URL (be sure to include http://
or https://
).
NOTE for users of Atlas and/or :
If deploying from the Atlas portal using your own repository without beginning with a blueprint, you will need to set your environment variables manually. Learn how by taking a look at our .
If using , ensure that in Localβs advanced settings, your router mode is set to Site Domains
to match your NEXT_PUBLIC_WORDPRESS_URL
value.
In case the WordPress URL is like: http://localhost/your-blog and your Front-end Site URL is http://localhost:3000, the conflict error will also occur, because they have the same localhost origin.
And then this error may occur: "Error - Validation Failed: Your Faust front-end site URL value is misconfigured. It should NOT match the NEXT_PUBLIC_WORDPRESS_URL."
So the solution is to customize one of those two URLs so they are different, you should consider using Atlas and/or for your local WordPress. Or simply temporarily remove the Front-end Site URL field in Settings β Faust
(only do this temporarily during localhost development and cannot customize the URLs)