fix(templates): website media staticDir to public folder (#8175)

This commit is contained in:
Paul
2024-09-11 12:37:55 -06:00
committed by GitHub
parent 51bc8b4416
commit 9561aa3f79

View File

@@ -40,6 +40,6 @@ export const Media: CollectionConfig = {
],
upload: {
// Upload to the public/media directory in Next.js making them publicly accessible even outside of Payload
staticDir: path.resolve(dirname, '../../../public/media'),
staticDir: path.resolve(dirname, '../../public/media'),
},
}