mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00

* chore: dummy preview * feat: update preview route * Update examples/getstarted/src/admin/preview/dummy-preview.jsx Co-authored-by: markkaylor <mark.kaylor@strapi.io> * Update examples/getstarted/src/admin/preview/dummy-preview.jsx Co-authored-by: markkaylor <mark.kaylor@strapi.io> * fix: register as named export * fix: register as named export * fix: remove unnecessary brackets --------- Co-authored-by: markkaylor <mark.kaylor@strapi.io>
30 lines
693 B
JavaScript
30 lines
693 B
JavaScript
module.exports = ({ env }) => ({
|
|
// autoOpen: false,
|
|
auth: {
|
|
secret: env('ADMIN_JWT_SECRET', 'example-token'),
|
|
},
|
|
apiToken: {
|
|
salt: env('API_TOKEN_SALT', 'example-salt'),
|
|
},
|
|
auditLogs: {
|
|
enabled: env.bool('AUDIT_LOGS_ENABLED', true),
|
|
},
|
|
transfer: {
|
|
token: {
|
|
salt: env('TRANSFER_TOKEN_SALT', 'example-salt'),
|
|
},
|
|
},
|
|
flags: {
|
|
nps: env.bool('FLAG_NPS', true),
|
|
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
|
},
|
|
preview: {
|
|
enabled: env.bool('PREVIEW_ENABLED', true),
|
|
config: {
|
|
handler: (uid, { documentId, locale, status }) => {
|
|
return `/admin/preview/${uid}/${documentId}/${locale}/${status}`;
|
|
},
|
|
},
|
|
},
|
|
});
|