From 97cbc1d54353d1e3cd18a664d4c934e3a025ef2c Mon Sep 17 00:00:00 2001 From: LucasDLTG Date: Tue, 28 Apr 2026 19:27:16 +0200 Subject: [PATCH] feat: public env var --- .env.production | 1 + .gitignore | 1 + README.md | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..f49521b --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +NEXT_PUBLIC_API_URL=https://chat.iceberg.black/api/chat/v1 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2c08a5d..fb7ac70 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ yarn-error.log* # env files (can opt-in for committing if needed) .env* +!.env.production # husky .husky diff --git a/README.md b/README.md index 93f6e42..73f8aee 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Change all lines with [TO CHANGE] + public/manifest.json - Ensure all git secrets or variables exist - Ensure all docker links exist on distant machine -- Ensure env file exists on remote machine +- Ensure env file exists on remote machine. If client needs access to env var put it in .env.production so var in included at build (DONT PUT SECRETS). ## Auto deploy