I have been trying to setup and run the headless setup powered by the Atlas Add-on and it proving rather difficult. I have encountered quite a few issues.
After having issues with provisioning which eventually worked I got a website installed and running.
I am able to login into the backend without issues.
I have an issue accesing the front end where I am getting: Unhandled Runtime Error SyntaxError: Unexpected token '?'
My setup is:
Mac Mini macOS Mojave V 10.14.6
Local V 6.1.5
Atlas Add-on V 1.3.0
Thank you for you suggestion. I checked the faust.config.js file and it looks ok to me.
Here is the file contents:
import { config as coreConfig } from '@faustjs/core';
if (!process.env.NEXT_PUBLIC_WORDPRESS_URL) {
console.error(
‘You must provide a NEXT_PUBLIC_WORDPRESS_URL environment variable, did you forget to load your .env.local file?’,
);
}
I have tried creating numeous other websites as headless setup and two things happen. I either get another error relating to mysql for which I could start another topic or Local completly ignores the fact that I checked the option to install it as headless and instead just creates a new regular WordPress instance. So feel quite lucky that I got one setup as far as it is now. Bankend seems to work good but front is not.
That error mentions that maybe the .env.local file might not be loaded. If you open that file, does it have the NEXT_PUBLIC_WORDPRESS_URL set to the url of the WordPress backend?
And this refers me to inspect the Local Routers Log. I really dont know how to read this file or what to look out for, what to action. I am also attaching the log.
That 502 error has the styling that I typically associate with Local’s Router – which means that for some reason, it can’t reach the WordPress backend.
In order to get a bit more info about what the Local app is encountering when creating sites, can you please provide your Local Log? See this Community Forum post for instructions on how to do so: