-
Notifications
You must be signed in to change notification settings - Fork 0
/
env-vars.d.ts
118 lines (109 loc) · 4.16 KB
/
env-vars.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
namespace NodeJS {
interface ProcessEnv {
/**
* The API key of an existing Splitgraph account.
*
* This should be defined in `.env.local` (a git-ignored file) or in Vercel settings.
*
* Get credentials: https://www.splitgraph.com/connect
*/
SPLITGRAPH_API_KEY: string;
/**
* The API secret of an existing Splitgraph account.
*
* This should be defined in `.env.local` (a git-ignored file) or in Vercel settings.
*
* Get credentials: https://www.splitgraph.com/connect
*/
SPLITGRAPH_API_SECRET: string;
/**
* A GitHub personal access token that can be used for importing repositories.
* It will be passed to the Airbyte connector that runs on Splitgraph servers
* and ingests data from GitHub into Splitgraph.
*
* This should be defined in `.env.local` (a git-ignored file) or in Vercel settings.
*
* Create one here: https://github.com/settings/personal-access-tokens/new
*/
GITHUB_PAT_SECRET: string;
/**
* Optional environment variable containing the address of a proxy instance
* through which to forward requests from API routes. See next.config.js
* for where it's setup.
*
* This is useful for debugging and development.
*/
MITMPROXY_ADDRESS?: string;
/**
* Optionally provide the SEAFOWL_INSTANCE_URL to use for creating fallback tables
* when an export fails.
*
* Note that at the moment, this must only be set to https://demo.seafowl.cloud
* because that's where Splitgraph exports to by default, and we are not currently
* passing any instance URL to the Splitgraph export API.
*/
SEAFOWL_INSTANCE_URL?: "https://demo.seafowl.cloud";
/**
* Optionally provide the SEAFOWL_INSTANCE_SECRET to use for creating fallback tables
* when an export fails.
*/
SEAFOWL_INSTANCE_SECRET?: string;
/**
* Optionally provide the dbname to use for creating fallback tables
* when an export fails.
*
* Note this MUST match the NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_NAMESPACE
*/
SEAFOWL_INSTANCE_DATABASE?: string;
/**
* The namespace of the repository in Splitgraph where metadata is stored
* containing the state of imported GitHub repositories, which should contain
* the repository `NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_REPOSITORY`.
*
* This should be defined in `.env.local`, since it's not checked into Git
* and can vary between users. It should match the username associated with
* the `SPLITGRAPH_API_KEY`
*
* Example:
*
* ```
* miles/splitgraph-github-analytics.completed_repositories
* ^^^^^
* NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_NAMESPACE=miles
* ```
*/
NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_NAMESPACE: string;
/**
* The repository (no namespace) in Splitgraph where metadata is stored
* containing the state of imported GitHub repositories, which should be a
* repository contained inside `NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_NAMESPACE`.
*
* This is defined by default in `.env` which is checked into Git.
*
* * Example:
*
* ```
* miles/splitgraph-github-analytics.completed_repositories
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^
* NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_REPOSITORY=splitgraph-github-analytics
* ```
*/
NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_REPOSITORY: string;
/**
* The name of the table containing completed repositories, which are inserted
* when the import/export is complete, and which can be queried to render the
* sidebar containing previously imported github repositories.
*
* This is defined by default in `.env` which is checked into Git.
*
* Example:
*
* ```
* miles/splitgraph-github-analytics.completed_repositories
* ^^^^^^^^^^^^^^^^^^^^^^
* NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_COMPLETED_TABLE=completed_repositories
* ```
*/
NEXT_PUBLIC_SPLITGRAPH_GITHUB_ANALYTICS_META_COMPLETED_TABLE: string;
}
}