You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
660 B
33 lines
660 B
module.exports = ({ env }) => ({
|
|
auth: {
|
|
secret: env('ADMIN_JWT_SECRET'),
|
|
},
|
|
apiToken: {
|
|
salt: env('API_TOKEN_SALT'),
|
|
},
|
|
secrets: {
|
|
encryptionKey: 'example-key',
|
|
},
|
|
transfer: {
|
|
token: {
|
|
salt: env('TRANSFER_TOKEN_SALT'),
|
|
},
|
|
},
|
|
flags: {
|
|
nps: env.bool('FLAG_NPS', true),
|
|
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
|
},
|
|
preview: {
|
|
enabled: true,
|
|
config: {
|
|
handler(uid, { documentId, locale, status }) {
|
|
if (uid === 'api::product.product') {
|
|
return null;
|
|
}
|
|
|
|
return `https://strapi.io/preview/${uid}/${documentId}/${locale}/${status}`;
|
|
},
|
|
},
|
|
},
|
|
});
|