Skip to content

Commit 5b3ce23

Browse files
Merge branch 'production' into patricia/pcx14289-jwt-claims-desc
2 parents cb5b2b0 + 6ee98a5 commit 5b3ce23

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/content/docs/workflows/build/trigger-workflows.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default {
6868
// If an ?instanceId=<id> query parameter is provided, fetch the status
6969
// of an existing Workflow by its ID.
7070
if (instanceId) {
71-
let instance = await env.MY_WORKFLOW.get(id);
71+
let instance = await env.MY_WORKFLOW.get(instanceId);
7272
return Response.json({
7373
status: await instance.status(),
7474
});

src/content/partials/workers/secrets-in-dev.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ The `.dev.vars` file should be formatted like a `dotenv` file, such as `KEY="VAL
1111
SECRET_KEY="value"
1212
API_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
1313
```
14+
15+
You can set secrets per environment by creating additional files with the naming convention `.dev.vars.<environment-name>`. Like other environment variables, secrets are [non-inheritable](/workers/wrangler/configuration/#non-inheritable-keys) and must be defined per environment.

0 commit comments

Comments
 (0)