Skip to content

Commit

Permalink
update upload settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rccsousa committed Oct 15, 2024
1 parent 724faf9 commit a283022
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/collections/Media/Media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,5 @@ 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'),
},
upload: true,
}

0 comments on commit a283022

Please sign in to comment.