Distribute game with relative paths

Hi

I’ve uploaded my game to itch.io but it wont run, I get an error 403. Apparently I need to make sure that the paths to the files and folders are relative. I’ve used Parcel to bundle the whole thing following the instructions from Ourcade.
Get Started with Phaser 3: Fast and Painless @ Playful Game Developmet Blog by Ourcade

Is there a way to change the paths to relative through Phaser or some instructions entered into the terminal when packaging the files for distribution?

I have experimented a bit and found that if I change the index.html from this
< script src="/main.dda5c766.js"> to this
< script src=“main.dda5c766.js”>

The game loads but another error comes up involving the main.dda5c766.map file and the game does not look right. So I assume the same thing needs to be done again, but this file is huge.

Thanks for your help. It is upload and I can play the game now. But there is one further problem, the text does not appear in the same position as it does on my own PC. Have a look at the screen shots you will see the text not aligned correctly on the published game.
image1

image2