Skip to content

Commit d67d370

Browse files
committed
Fixed formatting
1 parent ded4415 commit d67d370

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/guides/use-case/wiremock.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ Follow the steps to setup a non-containerized Node application:
159159
}
160160
```
161161
162-
> [!TIP]
163-
> For the production environment, it's recommended not to expose API keys details in logs. Instead, you can log a placeholder message to indicate whether the API key is loaded:
162+
> [!TIP]
163+
> For the production environment, it's recommended not to expose API keys details in logs. Instead, you can log a placeholder message to indicate whether the API key is loaded:
164164
165-
```
166-
const API_KEY = process.env.ACCUWEATHER_API_KEY;
165+
```javascript
166+
const API_KEY = process.env.ACCUWEATHER_API_KEY;
167167

168-
console.log('API_ENDPOINT_BASE:', API_ENDPOINT_BASE); // Log after it's defined
169-
console.log('ACCUWEATHER_API_KEY is set:', !!API_KEY); // Log a boolean value instead of the actual key
168+
console.log('API_ENDPOINT_BASE:', API_ENDPOINT_BASE); // Log after it's defined
169+
console.log('ACCUWEATHER_API_KEY is set:', !!API_KEY); // Log a boolean value instead of the actual key
170170

171171
if (!API_ENDPOINT_BASE) {
172172
throw new Error("API_ENDPOINT_BASE is not defined in environment variables");
@@ -176,9 +176,9 @@ Follow the steps to setup a non-containerized Node application:
176176
if (API_ENDPOINT_BASE !== 'http://localhost:8080' && !API_KEY) {
177177
throw new Error("ACCUWEATHER_API_KEY is not defined in environment variables");
178178
}
179-
```
179+
```
180180
181-
> This approach ensures that you only log whether the key is set without revealing its value.
181+
> This approach ensures that you only log whether the key is set without revealing its value.
182182
183183
4. Start the Node server
184184

0 commit comments

Comments
 (0)