Closed smythey21 closed 8 years ago
@smythey21 what you're doing should work. It's related to this PR: https://github.com/trailsjs/trailpack-hapi/pull/86 . It hasn't been merged because it needs to be updated to work with Windows. I'll get it working ASAP.
👍 Works after referencing latest in master. Thanks @weyj4
I'm trying to get my server to serve static assets in a folder called
frontend/dist
, but nothing seems to be working. I tried setting thewww
path inconfig/main.js
but it my server keeps returning{"statusCode":404,"error":"Not Found"}
.I also tried using the directory handler found in inert:
But this returns a validation error:
Any thoughts on why setting the
www
does nothing or how I can get the directory handler working?Update
I've raised the validation error as an issue in trailpack-router