Skip to content

Commit

Permalink
fix: set config environment to FOREST_ENVIRONMENT & update default pe…
Browse files Browse the repository at this point in the history
…rmission expiration delay (#22)
  • Loading branch information
matthv authored Jun 29, 2023
1 parent 3608e13 commit a2ba0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/ForestAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ private function loadOptions(): array
'authSecret' => Env::get('FOREST_AUTH_SECRET'),
'envSecret' => Env::get('FOREST_ENV_SECRET'),
'forestServerUrl' => Env::get('FOREST_SERVER_URL', 'https://api.forestadmin.com'),
'isProduction' => Env::get('APP_ENV', 'dev') === 'prod',
'isProduction' => Env::get('FOREST_ENVIRONMENT', 'dev') === 'prod',
'prefix' => Env::get('FOREST_PREFIX', 'forest'),
'permissionExpiration' => Env::get('FOREST_PERMISSIONS_EXPIRATION_IN_SECONDS', 1),
'permissionExpiration' => Env::get('FOREST_PERMISSIONS_EXPIRATION_IN_SECONDS', 500),
'cacheDir' => $this->appKernel->getContainer()->getParameter('kernel.cache_dir') . '/forest',
'schemaPath' => $this->appKernel->getProjectDir() . '/.forestadmin-schema.json',
'projectDir' => $this->appKernel->getProjectDir(),
Expand Down

0 comments on commit a2ba0c9

Please sign in to comment.