2021-10-26 12:07:57 +02:00
|
|
|
module.exports = ({ env }) => ({
|
|
|
|
// autoOpen: false,
|
|
|
|
auth: {
|
|
|
|
secret: env('ADMIN_JWT_SECRET', 'example-token'),
|
|
|
|
},
|
2022-01-25 15:22:35 +01:00
|
|
|
apiToken: {
|
|
|
|
salt: env('API_TOKEN_SALT', 'example-salt'),
|
|
|
|
},
|
2023-02-23 12:20:58 +01:00
|
|
|
auditLogs: {
|
|
|
|
enabled: env.bool('AUDIT_LOGS_ENABLED', true),
|
|
|
|
},
|
2023-02-02 16:52:48 +01:00
|
|
|
transfer: {
|
|
|
|
token: {
|
|
|
|
salt: env('TRANSFER_TOKEN_SALT', 'example-salt'),
|
|
|
|
},
|
|
|
|
},
|
2023-10-10 17:11:40 +02:00
|
|
|
flags: {
|
|
|
|
nps: env.bool('FLAG_NPS', true),
|
2023-10-23 18:20:59 +02:00
|
|
|
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
2023-10-10 17:11:40 +02:00
|
|
|
},
|
2024-10-07 21:16:25 +02:00
|
|
|
preview: {
|
|
|
|
enabled: env.bool('PREVIEW_ENABLED', true),
|
|
|
|
config: {
|
|
|
|
handler: (uid, { documentId, locale, status }) => {
|
2024-11-25 09:37:44 +01:00
|
|
|
const kind =
|
|
|
|
strapi.contentType(uid).kind === 'collectionType' ? 'collection-types' : 'single-types';
|
|
|
|
return `/admin/preview/${kind}/${uid}/${documentId}/${locale}/${status}`;
|
2024-10-07 21:16:25 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-10-26 12:07:57 +02:00
|
|
|
});
|