@akanjs/base 0.0.30 → 0.0.32
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/package.json +1 -1
- package/src/baseEnv.d.ts +2 -0
- package/src/baseEnv.js +5 -1
package/package.json
CHANGED
package/src/baseEnv.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface BaseEnv {
|
|
|
8
8
|
operationType: "server" | "client";
|
|
9
9
|
operationMode: "local" | "edge" | "cloud" | "module";
|
|
10
10
|
networkType: "mainnet" | "testnet" | "debugnet";
|
|
11
|
+
tunnelUsername: string;
|
|
12
|
+
tunnelPassword: string;
|
|
11
13
|
}
|
|
12
14
|
export type BackendEnv = BaseEnv & {
|
|
13
15
|
hostname: string | null;
|
package/src/baseEnv.js
CHANGED
|
@@ -35,6 +35,8 @@ const environment = process.env.NEXT_PUBLIC_ENV ?? "debug";
|
|
|
35
35
|
const operationType = typeof window !== "undefined" ? "client" : process.env.NEXT_RUNTIME ? "client" : "server";
|
|
36
36
|
const operationMode = process.env.NEXT_PUBLIC_OPERATION_MODE ?? "cloud";
|
|
37
37
|
const networkType = process.env.NEXT_PUBLIC_NETWORK_TYPE ?? (environment === "main" ? "mainnet" : environment === "develop" ? "testnet" : "debugnet");
|
|
38
|
+
const tunnelUsername = process.env.SSU_TUNNEL_USERNAME ?? "root";
|
|
39
|
+
const tunnelPassword = process.env.SSU_TUNNEL_PASSWORD ?? repoName;
|
|
38
40
|
const baseEnv = {
|
|
39
41
|
repoName,
|
|
40
42
|
serveDomain,
|
|
@@ -42,7 +44,9 @@ const baseEnv = {
|
|
|
42
44
|
environment,
|
|
43
45
|
operationType,
|
|
44
46
|
operationMode,
|
|
45
|
-
networkType
|
|
47
|
+
networkType,
|
|
48
|
+
tunnelUsername,
|
|
49
|
+
tunnelPassword
|
|
46
50
|
};
|
|
47
51
|
const side = typeof window === "undefined" ? "server" : "client";
|
|
48
52
|
const renderMode = process.env.RENDER_ENV ?? "ssr";
|