#js file treated as text/html after deployment on cpanel

7 messages · Page 1 of 1 (latest)

brittle pier
#

for reference, closest solution i found is this: https://forum.freecodecamp.org/t/vite-deployment-and-build-error/565717/2

#

but i'm still not sure

brittle pier
#

okay so this is solved, but there is another issue

#

it is trying to read the gltf file.. nothing changed, but it is now responding this from server

regal jolt
#

@brittle pier what happens, if you enter the URL of your gltf directly into your browser's location bar? Can you download the file unchanged?

last karma
#

I'm not much help for clues on why but the Unexpected token '<' is probably because you're getting HTML back and that's probably because you're getting a 404.