solosky / pixl.js

An emulator for Amiibo!
GNU General Public License v2.0
575 stars 110 forks source link

Web Page deployment #173

Closed impeeza closed 2 months ago

impeeza commented 9 months ago

Hello there.

Yesterday I noted if I deploy the web page generated since version 2.8.7 on a subfolder of the site, the site doesn't load, on the navigator console you get the errors: image

Note the error is about to load some files on https://impeeza.github.io/, but my deployment is on https://impeeza.github.io/pixl.js/

GET https://impeeza.github.io/manifest.js?24ca9d7d1b6f5b9ab586 net::ERR_ABORTED 404 (Not Found)
pixl.js/:14
GET https://impeeza.github.io/vendor.js?dee6c97d367fe20331d2 net::ERR_ABORTED 404 (Not Found)
pixl.js/:14
GET https://impeeza.github.io/index.js?7861d874e3386936ff77 net::ERR_ABORTED 404 (Not Found)
favicon.ico:1
GET https://impeeza.github.io/favicon.ico 404 (Not Found)

The same happens on my PC, I have setup a Apache server, and if I setup https://192.168.100.8/pixl.js the site doesn't load, but if I setup all on the root site, works fine: image

image

Even if I leave the files on the root site, and the subfolder, opening the subfolder load the site on the root: image

There is anything can be done?

solosky commented 9 months ago

You may change the const publicPath = '/' to const publicPath = '' in the screenshot bellow and then run npm run build to build a new version.

image

impeeza commented 9 months ago

Will try it tomorrow, thanks a lot.

Will investigate how to put there a variable pointing to initial URL. regards.

solosky commented 7 months ago

since there is no activity for a long time, I am closing this issue as resolved.

impeeza commented 7 months ago

Thanks I was unable to make the new router to work so no news by now.

solosky commented 7 months ago

Have you tried my solution? It tested working on my laptop.

impeeza commented 7 months ago

Didn't work on my setup, but also nothing worked so far, nor this project nor other projects so I messed up something on my setup, I am hopping next week deploy again all.

solosky commented 7 months ago

I have re-opened this issue. Please let me know if there is any update on this.

impeeza commented 7 months ago

Sorry I still no have PC the illness has having me a little slow.

solosky commented 7 months ago

Take care yourself.