Open
Description
Hi (again :)!
While trying to get Polka up and running, I have noticed that app.use(base, ...fn)
does not work when you use a base
value that contains more than one "folder".
Most minimal functioning example, assuming the existence of a local folder structure ./static/script/**
, e.g. ./static/script/main.js
:
import Polka from 'polka';
import Sirv from 'sirv';
const app = Polka();
// Works: /baz/main.js
app.use('/baz', Sirv('./static/script'));
// 404: /foo/bar/main.js
app.use('/foo/bar', Sirv('./static/script'));
app.listen(8001);
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels