and I am able to retrieve the static files using my browser. However, when I try to pull those same urls into observablehq.com as data, I am getting CORS errors....
So I added this setting in hopes it would apply to my static file urls:
httpNodeCors: {
origin: "*",
methods: "GET"
}
which does not help, since the static urls are not being handled via http in endpoints, I guess, which kinda makes sense. So is there built-in way to disable CORS for static files? Or does this require custom middleware???
Ok, well that answers that question -- thanks Nick.
Although now I'm wondering if static routes will need their own configuration, to support public access that is not as strict as http node routes.