The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix storage s3 endpoint not being optional
Charles Bocheteb07b373a71a
diff --git a/packages/twenty-docker/prod/twenty-server/Dockerfile b/packages/twenty-docker/prod/twenty-server/Dockerfileindex fe952b31ac5..12d28153886 100644--- a/packages/twenty-docker/prod/twenty-server/Dockerfile+++ b/packages/twenty-docker/prod/twenty-server/Dockerfile@@ -13,10 +13,15 @@ COPY ./packages/twenty-server /app/packages/twenty-serverRUN yarnRUN npx nx reset+RUN npx nx run twenty-server:build+RUN mv /app/packages/twenty-server/dist /app/packages/twenty-server/buildRUN npx nx run twenty-server:build:packageJsonRUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json-RUN npx nx run twenty-server:build-RUN yarn workspaces focus twenty-emails twenty-server+RUN rm -rf /app/packages/twenty-server/dist+RUN mv /app/packages/twenty-server/build /app/packages/twenty-server/dist++WORKDIR /app+RUN yarn workspaces focus --production twenty-emails twenty-serverFROM node:18.17.1-alpine as twenty-serverdiff --git a/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts b/packages/twenty-server/src/engine/integrations/environment/environment-variables.tsindex 62cc97c896a..028e8a319bf 100644--- a/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts+++ b/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts@@ -165,6 +165,7 @@ export class EnvironmentVariables {@ValidateIf((env) => env.STORAGE_TYPE === StorageDriverType.S3)@IsString()+ @IsOptional()STORAGE_S3_ENDPOINT: string;@IsString()