Skip to content

Commit

Permalink
refactor(app-trash-bin): assign API env variable to ADMIN env variable (
Browse files Browse the repository at this point in the history
  • Loading branch information
leopuleo authored May 14, 2024
1 parent 2f4ad51 commit 581d748
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/serverless-cms-aws/src/createAdminAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ export const createAdminAppConfig = (modifier?: ReactAppConfigModifier) => {
return createReactAppConfig(baseParams => {
const { config } = baseParams;

config.customEnv(env => ({ ...env, PORT: 3001 }));
config.customEnv(env => ({
...env,
WEBINY_ADMIN_TRASH_BIN_RETENTION_PERIOD_DAYS: process.env
.WEBINY_TRASH_BIN_RETENTION_PERIOD_DAYS as string,
PORT: 3001
}));

config.pulumiOutputToEnv<ApiOutput>("apps/api", ({ output, env }) => {
return {
Expand Down
2 changes: 2 additions & 0 deletions typings/env/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ declare namespace NodeJS {
WEBINY_LOGS_FORWARD_URL?: string;
WEBINY_FILE_UPLOAD_CHUNK_SIZE?: string;
WEBINY_FILE_UPLOAD_PARALLEL_CHUNKS?: string;
WEBINY_TRASH_BIN_RETENTION_PERIOD_DAYS?: string;
WEBINY_ADMIN_TRASH_BIN_RETENTION_PERIOD_DAYS?: string;
AWS_LAMBDA_FUNCTION_NAME?: string;
PATH?: string;
DEBUG?: "true" | "false" | string;
Expand Down

0 comments on commit 581d748

Please sign in to comment.