@datawheel/bespoke 0.2.6 → 0.2.8

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 CHANGED
@@ -8,7 +8,6 @@ REPORTS_DB_CONNECTION="postgres://user:@localhost:5432/database"
8
8
  REPORTS_LOGGING=true
9
9
  NEXT_PUBLIC_REPORTS_LOCALE_DEFAULT="en"
10
10
  NEXT_PUBLIC_REPORTS_LOCALES="en,es"
11
- REPORTS_DB_WIPE=false
12
11
  REPORTS_BASE_URL="http://localhost:3000"
13
12
 
14
13
  # Images
@@ -26,3 +25,20 @@ AUTH0_ISSUER_BASE_URL="https://xxxxxxx.auth0.com"
26
25
  AUTH0_CLIENT_ID="xxxxxxxxxxx"
27
26
  AUTH0_CLIENT_SECRET="xxxxxxxxxxx"
28
27
  ```
28
+
29
+ ### Environmental variables into Bespoke Report scope
30
+
31
+ Just add this in your `nextjs.config.js`
32
+
33
+ ```
34
+ publicRuntimeConfig: {
35
+ // Define your public environment variables for bespoke here
36
+ bespoke_report_env_vars: {
37
+ API: process.env.NEXT_PUBLIC_API || "N/A"
38
+ WHATEVER: "hello"
39
+ },
40
+ // ...
41
+ },
42
+ ```
43
+
44
+ And is gonna be offered as ENV_API and ENV_WHATEVER in the list of variables in the profile.