Skip to content

Commit

Permalink
Remove allowed path clause
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Oct 10, 2022
1 parent f2cc267 commit 4264d0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default fp(async function (fastify, opts) {
prefix: '/',
redirect: true,
maxAge: 600000,
lastModified: fastify.config.ENV !== 'production', // Always showing Tue, 01 Jan 1980 00:00:01 GMT in prod for some reason
allowedPath: (pathName, root, request) => !pathName.startsWith('/admin')
lastModified: fastify.config.ENV !== 'production' // Always showing Tue, 01 Jan 1980 00:00:01 GMT in prod for some reason
})

fastify.register(async function (fastify, opts) {
Expand Down

0 comments on commit 4264d0b

Please sign in to comment.