dmno version
0.0.41
Steps to reproduce
- Configure
WRANGLER_INJECT_MODE: { value: 'secrets' } in your DMNO schema.
- Set a config item to
dynamic: true.
- Run
dwrangler dev.
What is expected?
dwrangler should recognize the secrets injection mode and pass dynamic variables to wrangler using --var flags.
What is actually happening?
dwrangler silently falls back to inline mode. Dynamic variables are not injected as secrets. This happens because DmnoWranglerEnvSchema defines WRANGLER_INJECT_MODE, but dwrangler.ts mistakenly checks for DWRANGLER_INJECT_MODE.
System Info
Any additional comments?
The typo is located in dwrangler.ts:
|
const injectMode: 'inline' | 'secrets' = dmnoWranglerSettings.DWRANGLER_INJECT_MODE as any || 'inline'; |
dmno version
0.0.41
Steps to reproduce
WRANGLER_INJECT_MODE: { value: 'secrets' }in your DMNO schema.dynamic: true.dwrangler dev.What is expected?
dwranglershould recognize the secrets injection mode and pass dynamic variables to wrangler using--varflags.What is actually happening?
dwranglersilently falls back to inline mode. Dynamic variables are not injected as secrets. This happens becauseDmnoWranglerEnvSchemadefinesWRANGLER_INJECT_MODE, butdwrangler.tsmistakenly checks forDWRANGLER_INJECT_MODE.System Info
Any additional comments?
The typo is located in dwrangler.ts:
dmno/packages/platforms/cloudflare/src/dwrangler.ts
Line 145 in 00750ee