#L10 Vite relative path?

4 messages · Page 1 of 1 (latest)

grizzled drift
#

Is it possible to have vite spit out relative paths for the compiled js and css files? It’s returning the path containing the app url but I do not want that.

Anyone has any ideas? Thanks a lot

daring iron
#

For what exactly? If you're doing imports, like pictures, Vite would process that correctly

grizzled drift
#

The JS isn't loading because of CORS. I have a setup where users can have custom domains, etc.

If I would use relative paths for the resources then the CORS issue would disappear.

So, instead of having myapp.com/foo/bar/app-123.js I should have just /foo/bar/app-123.js in my script tag. That's what I'm going for

daring iron