0

I have been messing with Phaser 3 lately and would like to upload my game on a website. I know firebase offers hosting which is free so I wanted to try that out. I successfully setup everything on the firebase side using the firebase-cli. My phaser project uses a webpack config. When I test my phaser game locally using "firebase serve" it doesnt load the phaser code at all. On the other hand it works perfectly with "yarn dev". Has anyone had any experiance deploying a phaser app on firebase hosting? I did some reasearch but didnt really find out much about that topic. Any help is appreciated.

I setup firebase hosting with firebase-cli but when testing the game locally via firebase-serve the website doesnt load anything related to phaser.

EDIT: Also I get no errors whatso-ever which makes this even more confusing

Angelos
  • 1
  • 2

2 Answers2

0

Make sure you upgrade firebase to the blaze plan, which doesn't charge you but allows one to use third party libraries, otherwise it won't function because firebase will inherently block your third party requests api requests. the blaze plan will require a credit card or debit card on file, but if one is careful one should for all intents and purposes be able to operate free or close to free for a very long time.

firebase deploy --only hosting
firebase deploy --only functions
0

I found a solution to my Problem. Basically, I had set up my webpack wrong. For anyone looking to get into Phaser 3 Development, I'd suggest you check out Yannick's template that works with phaser+webpack+typescript. Here is the link: https://github.com/yandeu/phaser-project-template . It also is pretty up-to-date which is awesome!

Angelos
  • 1
  • 2