File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/elements-react/src/context Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ type OryElementsConfigContextType = {
8989}
9090
9191const OryConfigurationContext = createContext < OryElementsConfigContextType > ( {
92- sdk : computeSdkConfig ( { } ) ,
92+ sdk : null ! , // This is fine, because we always supply a proper default value for the SDK configuration in the provider
9393 project : defaultProject ,
9494} )
9595
@@ -156,11 +156,7 @@ function computeSdkConfig(config?: OryClientConfiguration["sdk"]): SDKConfig {
156156}
157157
158158function getSDKUrl ( ) {
159- if (
160- typeof process !== "undefined" &&
161- process . versions &&
162- process . versions . node
163- ) {
159+ if ( typeof process !== "undefined" && ! ! process . env ) {
164160 // process is available, let's try some environment variables
165161 if ( isProduction ( ) ) {
166162 const sdkUrl =
You can’t perform that action at this time.
0 commit comments