[Vuejs]-Render vue js build into Node js and Hapi js project

0đź‘Ť

I think the issue you’re running into is that you’re missing the “relativeTo” property on your server.views({ ... }) registration, plus you need to setup the server to serve static files as outlined in the documentation here. It’s worth noting that while hapi can serve out static files just fine, it’s not a great idea to let it do it in production. I personally prefer creating an nginx or apache rule to read the files from the assets directory on match as it’s much more performant.

Leave a comment