We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I include staticify like this:
staticify
const staticify = require('staticify')(path.join(__dirname, 'public'), { pathPrefix: '/public' }); app.use('/public', staticify.middleware);
This works when I receive requests for versioned files, but not if I request the file without including the hash
I can work around the issue using the code below, but it'd be nice if staticify.middleware did this for me
staticify.middleware
if (!isProd) { app.use(function(req, res, next) { if (req.url.startsWith('/javascripts') || req.url.startsWith('/css')) { req.url = '/public/' + req.url; } next(); }); }
The text was updated successfully, but these errors were encountered:
If you make a PR with tests, someone will be able to review it :)
Sorry, something went wrong.
No branches or pull requests
I include
staticify
like this:This works when I receive requests for versioned files, but not if I request the file without including the hash
I can work around the issue using the code below, but it'd be nice if
staticify.middleware
did this for meThe text was updated successfully, but these errors were encountered: