mirror of
https://github.com/strapi/strapi.git
synced 2026-01-05 19:52:15 +00:00
Fix public directories
This commit is contained in:
parent
2626f5e7b4
commit
f7a20effb1
@ -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,
|
||||
}),
|
||||
|
||||
@ -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 },
|
||||
},
|
||||
]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user