Search code examples
node.jsfirebasepugfirebase-hosting

How to configure Firebase hosting to use pug instead of html file?


I want to hosting my webapp to firebase hosting but it seems that firebase doesn't work with pug template because it return me 404 page not found with my "index.pug".

Thanks in advance.


Solution

  • Firebase Hosting won't compile any sort of frameworks or templates for you. It just serves static content. If you want to use a pug template, you'll have to compile it, then move the static assets into the Firebase Hosting public directory.