Unexpected token '<', "<!DOCTYPE "... is not valid JSON

app name: celebrated-frangollo-1e3207.netlify.app
no custom domain
build successful

The error message I am getting from the server is in the title, the console shows “Failed to load resource: the server responded with a status of 404 ()”,

I am using relative url to fetch data:
const response = await fetch(‘/api/users’)

the app 100% works locally and deployed to heroku, however only netlify gives me this error

Where is the API? Is it another server? If it is, have you configured a proxy for the path?

The api is the app itself, i use webpack to bundle the frontend folder which is in the root repository

as i said, it works locally and on heroku, only netlify gives me the error

Can you share the repository?