flow-db-admin
flow-db-admin copied to clipboard
Only use admin for users
How can I use this package for only user admin?
Even if I create the AdminConfig
global object, I still get the following message at /admin
:
You need to define an AdminConfig object to use the admin dashboard.
A basic config to manage the 'Posts' and 'Comments' collection would look like this:
AdminConfig = {
adminEmails: [' [email protected]'],
collections:
{
Posts: {},
Comments: {}
}
}
My code (it is getting called, I tried a console.log
just to make sure):
AdminConfig = {
name: 'App',
adminEmails: ['[email protected]']
}