initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import type { Core } from '@strapi/strapi';
|
||||
|
||||
const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Admin => ({
|
||||
auth: {
|
||||
secret: env('ADMIN_JWT_SECRET')!,
|
||||
},
|
||||
apiToken: {
|
||||
salt: env('API_TOKEN_SALT')!,
|
||||
},
|
||||
transfer: {
|
||||
token: {
|
||||
salt: env('TRANSFER_TOKEN_SALT')!,
|
||||
},
|
||||
},
|
||||
secrets: {
|
||||
encryptionKey: env('ENCRYPTION_KEY')!,
|
||||
},
|
||||
/**
|
||||
* Path the admin panel is served from, relative to `server.url`.
|
||||
* Set ADMIN_URL to an absolute URL only when the panel is hosted separately
|
||||
* from the API (in which case also set SERVE_ADMIN_PANEL=false).
|
||||
*/
|
||||
url: env('ADMIN_URL', '/admin'),
|
||||
serveAdminPanel: env.bool('SERVE_ADMIN_PANEL', true),
|
||||
// Do not pop a browser open on `strapi develop` - agents and CI run headless.
|
||||
autoOpen: env.bool('ADMIN_AUTO_OPEN', false),
|
||||
flags: {
|
||||
nps: env.bool('FLAG_NPS', true),
|
||||
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
||||
docLinks: env.bool('FLAG_DOC_LINKS', true),
|
||||
},
|
||||
});
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user