[PR #434] [CLOSED] feat: use t3-env to validate envs #972

Closed
opened 2026-02-26 19:31:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/434
Author: @G3root
Created: 9/26/2023
Status: Closed

Base: feat/refreshHead: validate-env


📝 Commits (10+)

📊 Changes

13 files changed (+265 additions, -21 deletions)

View changed files

📝 apps/web/next.config.js (+2 -0)
📝 apps/web/package.json (+1 -0)
📝 apps/web/src/app/(dashboard)/admin/stats/page.tsx (+2 -1)
📝 apps/web/src/app/(dashboard)/settings/billing/page.tsx (+2 -1)
📝 apps/web/src/app/(share)/share/[slug]/redirect.tsx (+3 -1)
📝 apps/web/src/app/layout.tsx (+3 -2)
apps/web/src/env.mjs (+183 -0)
📝 apps/web/src/helpers/get-asset-buffer.ts (+3 -1)
📝 apps/web/src/pages/api/claim-plan/index.ts (+4 -3)
📝 apps/web/src/pages/api/stripe/webhook/index.ts (+3 -1)
📝 package-lock.json (+45 -0)
📝 packages/eslint-config/index.cjs (+9 -0)
📝 turbo.json (+5 -11)

📄 Description

This PR aims to address breaking changes in self-hosted setups caused by renaming or adding new environment variables by implementing validation and establishing a single source of truth.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/434 **Author:** [@G3root](https://github.com/G3root) **Created:** 9/26/2023 **Status:** ❌ Closed **Base:** `feat/refresh` ← **Head:** `validate-env` --- ### 📝 Commits (10+) - [`1d51554`](https://github.com/documenso/documenso/commit/1d51554f98cdf1961f9aeaf034a0b7c0ca71cd95) feat: add t3 oss env - [`5403d35`](https://github.com/documenso/documenso/commit/5403d3554031c36b69d7513038df055240f4c8f3) feat: add env - [`eb88988`](https://github.com/documenso/documenso/commit/eb889887aa782391aeac4022b5f9f70a115744b6) chore: add t3 env - [`9a387a2`](https://github.com/documenso/documenso/commit/9a387a2f45d2f6b6919462f05919adf7e8f4f65c) chore: add env to turbo.json - [`5f85baa`](https://github.com/documenso/documenso/commit/5f85baa3e226fbcf0403652fb7b8e0a04d87151c) feat: add custom rule for web app - [`b773819`](https://github.com/documenso/documenso/commit/b7738199b829edb224e62159bf5e0e4c4bc36a4e) feat: import env - [`0c08860`](https://github.com/documenso/documenso/commit/0c08860b02d8d2f2d407dbc2d9de1c72069810ef) feat: add new envs - [`215d57a`](https://github.com/documenso/documenso/commit/215d57ad83289de0f416d8ce884cbdda237e8b9d) feat: add skip validation - [`9e90759`](https://github.com/documenso/documenso/commit/9e907597160789e73fdb02432f691f8be8c116c7) feat: use t3 env - [`adb962c`](https://github.com/documenso/documenso/commit/adb962c7d9e17852ab3684038c4dd9c54f1a4c9a) fix: error ### 📊 Changes **13 files changed** (+265 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/next.config.js` (+2 -0) 📝 `apps/web/package.json` (+1 -0) 📝 `apps/web/src/app/(dashboard)/admin/stats/page.tsx` (+2 -1) 📝 `apps/web/src/app/(dashboard)/settings/billing/page.tsx` (+2 -1) 📝 `apps/web/src/app/(share)/share/[slug]/redirect.tsx` (+3 -1) 📝 `apps/web/src/app/layout.tsx` (+3 -2) ➕ `apps/web/src/env.mjs` (+183 -0) 📝 `apps/web/src/helpers/get-asset-buffer.ts` (+3 -1) 📝 `apps/web/src/pages/api/claim-plan/index.ts` (+4 -3) 📝 `apps/web/src/pages/api/stripe/webhook/index.ts` (+3 -1) 📝 `package-lock.json` (+45 -0) 📝 `packages/eslint-config/index.cjs` (+9 -0) 📝 `turbo.json` (+5 -11) </details> ### 📄 Description This PR aims to address breaking changes in self-hosted setups caused by renaming or adding new environment variables by implementing validation and establishing a single source of truth. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#972
No description provided.