Fix public directories

This commit is contained in:
Convly 2022-04-04 17:12:47 +02:00
parent 2626f5e7b4
commit f7a20effb1
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ module.exports = (config, { strapi }) => {
{
method: 'GET',
path: '/(.*)',
handler: koaStatic(strapi.dirs.app.public, {
handler: koaStatic(strapi.dirs.static.public, {
maxage: maxAge,
defer: true,
}),

View File

@ -25,7 +25,7 @@ module.exports = ({ strapi }) => {
{
method: 'GET',
path: '/uploads/(.*)',
handler: [range, koaStatic(strapi.dirs.app.public, { defer: true, ...localServerConfig })],
handler: [range, koaStatic(strapi.dirs.static.public, { defer: true, ...localServerConfig })],
config: { auth: false },
},
]);