Parcel build not linking js file on PROD

Would anyone know how to run an app built with Parcel on Prod?

It’s a simple personal project but for some reason html file isn’t linked with js file.

The page is deployed through github pages at https://shimphillip.github.io/number-facts/

Here is my repo https://github.com/shimphillip/number-facts/tree/gh-pages.

Thanks in advance!

I think it’s expecting the script to be in the root, and not /number-facts/.

Does using this command for the build work? (edit: not sure if the dot is needed or not)
parcel build index.html --public-url ./number-facts/

Set the public URL to serve on

1 Like

Thanks, let me try that.