Skip to content

Commit

Permalink
Add security note to how-to-use-environment-variables-in-typescript.md (
Browse files Browse the repository at this point in the history
#1948)

* Add security note to how-to-use-environment-variables-in-typescript.md

* match others

* Format

* Update docs-src/typescript/how-to-use-environment-variables-in-typescript.md

Co-authored-by: Dail Magee Jr <7518128+djmagee@users.noreply.github.com>

* Update docs-src/typescript/how-to-use-environment-variables-in-typescript.md

Co-authored-by: Dail Magee Jr <7518128+djmagee@users.noreply.github.com>

---------

Co-authored-by: lorensr <lorensr@users.noreply.github.com>
Co-authored-by: Dail Magee Jr <7518128+djmagee@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 13, 2023
1 parent ab5f55e commit cc3838d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const createActivities = (envVars: { apiKey: string }) => ({

**Getting into Workflow**

If we needed environment variables in our Workflow, here's how we'd use a Local Activity:
If you need environment variables in your Workflow, use a Local Activity:

```ts
const worker = await Worker.create({
Expand Down Expand Up @@ -88,3 +88,5 @@ async function yourWorkflow() {
await sendNotificationEmail(envVars.apiKey);
}
```

If your environment variables are sensitive, use a [custom Data Converter](https://legacy-documentation-sdks.temporal.io/typescript/data-converters#encryption) to encrypt Activity return values and parameters.
2 changes: 1 addition & 1 deletion docs/application-development/worker-performance.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: worker-performance
title: Developer's Guide - Worker performance
title: Developer's guide - Worker performance
description: Guide into Workers Tuning
sidebar_label: Worker performance
tags:
Expand Down

0 comments on commit cc3838d

Please sign in to comment.