@stacksjs/defaults 0.70.98 → 0.70.100

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
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.98",
5
+ "version": "0.70.100",
6
6
  "description": "Default Stacks scaffold resources (views, layouts, components, preloader) — shipped so apps consuming the framework from node_modules get the same fallback resources a vendored checkout provides. Source of truth: storage/framework/defaults.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -72,20 +72,11 @@ if (!skipPreloader) {
72
72
  // Auto-load .env files based on environment
73
73
  // Set quiet: true to prevent duplicate logging across multiple processes
74
74
  //
75
- // keysFile MUST be passed here: autoLoadEnv only resolves a decryption
76
- // private key from a keys FILE when explicitly told which one to read —
77
- // without it, an encrypted .env.production (DOTENV_PUBLIC_KEY_PRODUCTION
78
- // + `encrypted:...` values) loads with every encrypted value left as raw
79
- // ciphertext in process.env, silently breaking anything that reads
80
- // process.env.SOME_SECRET directly (e.g. deploy-time credentials like
81
- // HCLOUD_TOKEN/PORKBUN_API_KEY) with no error — it just looks like a
82
- // bogus/expired credential downstream.
83
- // Pass the resolved env so autoLoadEnv reads `.env.<env>` with the matching
84
- // `DOTENV_PRIVATE_KEY_<ENV>` (it defaults to `development` otherwise), and
85
- // overload so this decrypted pass overrides the still-encrypted values the
86
- // earlier `@stacksjs/env/plugin.js` bunfig preload seeds into process.env
87
- // (loadEnv won't overwrite already-set vars without it).
88
- autoLoadEnv({ quiet: true, keysFile: '.env.keys', env: process.env.APP_ENV, overload: true })
75
+ // Pass the resolved env so deploy commands deterministically select their
76
+ // matching `.env.<env>` file. autoLoadEnv discovers `.env.keys` by default,
77
+ // replaces ciphertext that Bun preloaded, and preserves genuine shell/CI
78
+ // overrides while applying environment-specific file precedence.
79
+ autoLoadEnv({ quiet: true, env: process.env.APP_ENV })
89
80
  }
90
81
 
91
82
  // stx template engine plugin