Thanks @Apple
But that’s the way of using server connect?
If I move the api to public, I need to rename the server connect from <dmx-serverconnect id="serverconnect1" url="/api/value"></dmx-serverconnect>
to <dmx-serverconnect id="serverconnect1" url="/api/value.json"></dmx-serverconnect>
Edit: Ignore everything I wrote below, it’s completely incorrect
Click to see the incorrect advice
It’s very confusing to me what you’re trying to do, a Server Connect is to connect to a Server Action. Maybe you want to use “API Data Source” instead?
And yes, you need to “rename” to /api/value.json. I’m not sure why it worked on localhost without renaming… Something to do you with your web server configuration I guess.
You’re right, you did everything right, sorry, forget about the public folder and renaming I mentioned earlier
All I can think are folder/file permissions are not set correctly, but this is just a theory, it’s very hard to know the problem you’re experiencing. Set folder/file permissions (chmod) to 777 to test