artes 1.1.25 → 1.1.26
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/README.md +6 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -332,7 +332,7 @@ You can configure Artes by editing the `artes.config.js` file. Below are the def
|
|
|
332
332
|
|
|
333
333
|
### Environment Variables Configuration
|
|
334
334
|
|
|
335
|
-
Artes
|
|
335
|
+
Artes supports environment-specific configurations through environment variables. This feature allows to manage different settings for environments.
|
|
336
336
|
|
|
337
337
|
### Setting Up Environment Variables
|
|
338
338
|
|
|
@@ -340,28 +340,25 @@ Artes now supports environment-specific configurations through environment varia
|
|
|
340
340
|
```javascript
|
|
341
341
|
module.exports = {
|
|
342
342
|
baseURL: {
|
|
343
|
-
dev: "https://dev.
|
|
344
|
-
pre: "https://pre.
|
|
345
|
-
prod: "https://api.
|
|
343
|
+
dev: "https://dev.alma.az",
|
|
344
|
+
pre: "https://pre.alma.az",
|
|
345
|
+
prod: "https://api.alma.az"
|
|
346
346
|
},
|
|
347
347
|
env: "dev", // Specify which environment to use
|
|
348
|
-
// ... other configurations
|
|
349
348
|
};
|
|
350
349
|
```
|
|
351
350
|
|
|
352
351
|
**Alternative single URL configuration:**
|
|
353
352
|
```javascript
|
|
354
353
|
module.exports = {
|
|
355
|
-
baseURL: "https://api.
|
|
356
|
-
env: "dev",
|
|
357
|
-
// ... other configurations
|
|
354
|
+
baseURL: "https://api.alma.az", // Direct string URL
|
|
358
355
|
};
|
|
359
356
|
```
|
|
360
357
|
|
|
361
358
|
2. **Create Environment Variable Files:**
|
|
362
359
|
Create JSON files under `src/tests/environment-variables/` folder with names matching your environment:
|
|
363
360
|
|
|
364
|
-
**dev.json:**
|
|
361
|
+
**dev.env.json:**
|
|
365
362
|
```json
|
|
366
363
|
{
|
|
367
364
|
"api_key": "dev-api-key-12345",
|