strapi / nextjs-corporate-starter

Strapi Demo application for Corporate Websites using Next.js
MIT License
1.08k stars 337 forks source link

Replace population middlewars with protected-populate plugin #11

Open Boegie19 opened 1 year ago

Boegie19 commented 1 year ago

Replace functionality page-populate-middleware.js with protected-populate plugin (currently only for the population part since I am not yet done with filters)

Boegie19 commented 1 year ago

Just realized that this does not work since I don't have suport for api tokens aaa

correction it will work but that mean that we can't do role based stuff

KennyAtCodin commented 1 year ago

Is there a simple way to dynamically extend the populate middleware when we add new components? I struggle to write the correct populate statements for newly created components

or should I create a PR for this? @PaulBratslavsky

Boegie19 commented 1 year ago

Still have to write a pr for my tool to make it work with api tokens after I done that I will open a pr to switch

PaulBratslavsky commented 1 year ago

@Boegie19 thanks for the update but once everything is ready would love to add your plugin to the starter.