I was wondering if anyone knew why I would get this error. I was thinking it was because my frontend is not connect to my nodeJS backend. I did however add the rewrite rules:
Source: /api/* Destination: {backendurl}/api.*
Source: /* Destination: index.js
Also, the Failed to load resources error occurs by going into the homepage → gui, and it is shown in the console
UPDATE: I was able to fix this and have the frontend connect with the backend, but I ran into another issue.
I have a json files stored in a folder called client/data in my github that I am editing from server/index.js using “fs”. This works in my localhost when I run it in ports 3000 (client) and 4000 (server) where I can actually edit the json files, but it doesn’t seem to work here. Is there a way to bypass this, or would I have to establish an actual database?
You can get a persistent disk with any paid instance type, including those under an individual plan. See https://render.com/pricing for more information.