-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.ts
43 lines (41 loc) · 954 Bytes
/
env.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
import { env as baseEnv, logLevels, z } from "./zcli.ts";
export const env = baseEnv({
/**
* A Paperspace public API Key
*/
PAPERSPACE_API_KEY: baseEnv.string().optional(),
/**
* A custom Paperspace API URL
*/
PAPERSPACE_API_URL: baseEnv
.string()
.url()
.default("https://api.paperspace.com/v1"),
/**
* A custom Paperspace Console URL
*/
PAPERSPACE_CONSOLE_URL: baseEnv
.string()
.url()
.default(`https://dashboard.paperspace.com/`),
/**
* A custom Paperspace Console URL
*/
PAPERSPACE_DOCS_URL: baseEnv
.string()
.url()
.default(`https://docs.paperspace.com/`),
/**
* Run in a particular log level
*/
LOG_LEVEL: z.enum(logLevels).optional(),
/**
* Disable color output
*/
NO_COLOR: baseEnv.bool().optional(),
/**
* The home directory for the user
*/
HOME: baseEnv.string().default(""),
});
export type Env = ReturnType<typeof env["toObject"]>;