File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,23 @@ const getApiKeyFromEnv = (
97
97
}
98
98
99
99
const getEndpointFromEnv = ( ) : string | null | undefined => {
100
+ if ( globalThis . process ?. env ?. SEAM_API_URL != null ) {
101
+ // eslint-disable-next-line no-console
102
+ console . warn (
103
+ 'Using the SEAM_API_URL environment variable is deprecated. Support will be remove in a later major version. Use SEAM_ENDPOINT instead.' ,
104
+ )
105
+ }
106
+
107
+ if (
108
+ globalThis . process ?. env ?. SEAM_API_URL != null &&
109
+ globalThis . process ?. env ?. SEAM_ENDPOINT != null
110
+ ) {
111
+ // eslint-disable-next-line no-console
112
+ console . warn (
113
+ 'Detected both the SEAM_API_URL and SEAM_ENDPOINT environment variables. Using SEAM_ENDPOINT.' ,
114
+ )
115
+ }
116
+
100
117
return (
101
118
globalThis . process ?. env ?. SEAM_ENDPOINT ??
102
119
globalThis . process ?. env ?. SEAM_API_URL
You can’t perform that action at this time.
0 commit comments