hi,
i cant get my react app with a node express server to work.
my requests returns 404. in the section called “FPL marathon” on the site.
i have a server folder in my root that contains the node express app. i have my routes in the index.js file.
an example of a enpoint is : /api/fpl/standings/
i am using axios not serverless if that could be an issue?
my netlify.toml file looks like this:
netlify site: https://familyfpl.netlify.app
[build]
command = "npm run build" # Adjust this to match your build script
publish = "dist"
[[redirects]]
force = true
from = "/api/*"
status = 200
to = "/.netlify/functions/server/:splat"
[functions]
external_node_modules = ["express"]
node_bundler = "esbuild"