create-tigra 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -50,6 +50,8 @@ When the user asks to create, scaffold, or start a new server or client project,
|
|
|
50
50
|
|
|
51
51
|
- **`.env` files are never committed.** Use `.env.example` as the template with placeholder values.
|
|
52
52
|
- **Adding a new env var**: Add it to `.env.example` with a comment, and document where it's used.
|
|
53
|
+
- **Keep `.env` and `.env.example` in sync**: Any change to `.env` (adding, removing, or renaming a variable) must be reflected in `.env.example`, and vice versa. They must always have the same set of variables.
|
|
54
|
+
- **Keep `.env.example.production` in sync**: Every time `.env` or `.env.example` changes (variable added, removed, or renamed), also update `.env.example.production` in the same directory. If the file does not exist, create it. This file uses the same variable names but with **production-appropriate placeholder values** and comments (e.g., secure passwords, real domain URLs, SSL-enabled connection strings, stricter timeouts). This applies to both `server/` and `client/` directories.
|
|
53
55
|
- **Secrets** (DB URLs, JWT secrets, API keys) must never be prefixed with `NEXT_PUBLIC_` and must never appear in client-side code.
|
|
54
56
|
- **Public values only** (API base URL, app name) get the `NEXT_PUBLIC_` prefix.
|
|
55
57
|
|
|
File without changes
|