Skip to content

Commit 891d16e

Browse files
committed
Add functionVersionInfo to nodejs server
1 parent bc3b9a6 commit 891d16e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

server/src/config.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
type RuntimeVersion = '~1' | 'beta' | 'latest';
12
interface StaticConfig {
23
config: {
34
env: {
@@ -7,6 +8,10 @@ interface StaticConfig {
78
},
89
isAzure: boolean;
910
isOnPrem: boolean;
11+
functionsVersionInfo: {
12+
runtimeStable: Array<RuntimeVersion>;
13+
runtimeDefault: RuntimeVersion
14+
}
1015
}
1116
}
1217

@@ -19,6 +24,10 @@ export const staticConfig: StaticConfig = {
1924
},
2025
// TODO: [ehamai] I wouldn't use "isAzure" or "isOnPrem" as properties. RuntimeType should contain all of those variations.
2126
isAzure: !!process.env.WEBSITE_SITE_NAME,
22-
isOnPrem: false
27+
isOnPrem: false,
28+
functionsVersionInfo: {
29+
runtimeStable: ['~1', 'beta', 'latest'],
30+
runtimeDefault: '~1'
31+
}
2332
}
2433
};

server/tslint.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"quotemark": [true, "single", "avoid-escape", "avoid-template"]
4+
}
5+
}

0 commit comments

Comments
 (0)