Added support for an Advertisement Banner on the homepage
made home publish/draft
This commit is contained in:
@@ -21,5 +21,24 @@ module.exports = ({ env }) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
publisher: {
|
||||
enabled: true,
|
||||
config: {
|
||||
hooks: {
|
||||
beforePublish: async ({ strapi, uid, entity }) => {
|
||||
console.log("beforePublish");
|
||||
},
|
||||
afterPublish: async ({ strapi, uid, entity }) => {
|
||||
console.log("afterPublish");
|
||||
},
|
||||
beforeUnpublish: async ({ strapi, uid, entity }) => {
|
||||
console.log("beforeUnpublish");
|
||||
},
|
||||
afterUnpublish: async ({ strapi, uid, entity }) => {
|
||||
console.log("afterUnpublish");
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
module.exports = ({ env }) => ({
|
||||
host: env('HOST', '0.0.0.0'),
|
||||
port: env.int('PORT', 1337),
|
||||
app: {
|
||||
keys: env.array('APP_KEYS'),
|
||||
},
|
||||
webhooks: {
|
||||
populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', false),
|
||||
},
|
||||
});
|
||||
module.exports = ({ env }) => {
|
||||
const cronEnabled = env.bool("CRON_ENABLED", true)
|
||||
console.log('cronEnabled', cronEnabled);
|
||||
return {
|
||||
host: env("HOST", "0.0.0.0"),
|
||||
port: env.int("PORT", 1337),
|
||||
app: {
|
||||
keys: env.array("APP_KEYS"),
|
||||
},
|
||||
webhooks: {
|
||||
populateRelations: env.bool("WEBHOOKS_POPULATE_RELATIONS", false),
|
||||
},
|
||||
cron: {
|
||||
enabled: cronEnabled,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user