Open lyquocnam opened 6 years ago
if i try to use:
fastify.use(require('lasso/middleware').serveStatic());
this error:
/Users/lynam/Documents/dev/marko/node_modules/lasso/middleware/serveStatic.js:47 if (!path.startsWith(routePrefix) || (req.method !== 'GET' && req.method !== 'HEAD')) { ^ TypeError: Cannot read property 'startsWith' of undefined at /Users/lynam/Documents/dev/marko/node_modules/lasso/middleware/serveStatic.js:47:18 at Holder.done (/Users/lynam/Documents/dev/marko/node_modules/middie/middie.js:90:11)
and if not use, assets could not be found.
if i try to use:
this error:
and if not use, assets could not be found.