From f1f72402b243a93866608573783b60881bdd83ad Mon Sep 17 00:00:00 2001 From: ArraysID Date: Sat, 10 May 2025 16:44:12 +0700 Subject: [PATCH] fix: add placeholder to .env.example --- .env.example | 15 ++++++++++----- apps/landing/next.config.js | 3 --- apps/landing/src/payload.config.ts | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index d93943c..8736213 100644 --- a/.env.example +++ b/.env.example @@ -1,9 +1,14 @@ +# API Endpoint VITE_API_URL= -CMS_SECRET= -CMS_POSTGRES_URL= +# Payload CMS Secret Key (minimum 32 characters) +CMS_SECRET=your-very-long-secret-key -CMS_STORAGE_ENDPOINT= -CMS_STORAGE_ACCESS_KEY_ID= -CMS_STORAGE_SECRET_ACCESS_KEY= +# PostgreSQL Connection String +CMS_POSTGRES_URL=postgres://user:password@host:port/database + +# S3 Storage Configuration +CMS_STORAGE_ENDPOINT=https://your-s3-endpoint.com +CMS_STORAGE_ACCESS_KEY_ID=your-access-key-id +CMS_STORAGE_SECRET_ACCESS_KEY=your-secret-access-key CMS_STORAGE_REGION=ap-southeast-1 diff --git a/apps/landing/next.config.js b/apps/landing/next.config.js index 71243d4..e6eccb9 100644 --- a/apps/landing/next.config.js +++ b/apps/landing/next.config.js @@ -10,9 +10,6 @@ const nextConfig = { warn: () => {}, }, }, - webpack(config) { - return config; - }, }; module.exports = composePlugins(withNx, withPayload)(nextConfig); diff --git a/apps/landing/src/payload.config.ts b/apps/landing/src/payload.config.ts index 3e26c96..7ccc7e1 100644 --- a/apps/landing/src/payload.config.ts +++ b/apps/landing/src/payload.config.ts @@ -40,7 +40,7 @@ export default buildConfig({ CommunitiesSection, LearningResourcesSection, TestimonialsSection, - CallToActionSection + CallToActionSection, ], editor: lexicalEditor(), secret: process.env.CMS_SECRET || '',