Skip to content

Commit 5b61d00

Browse files
author
Magne Cedric
committed
fix(cors): fix profile sdk env
1 parent a0eb69a commit 5b61d00

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/lib/siwsrp/auth.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,23 @@ export const AUTH_WALLET_PROJECTS = "auth.wallet.projects";
1818
export const getHydraEnv = (): HydraEnv => {
1919
const platform = Platform.INFURA;
2020

21-
if (VERCEL_ENV === "production") {
21+
// if (VERCEL_ENV === "production") {
2222
return {
2323
...getEnvUrls(Env.PRD),
2424
env: Env.PRD,
2525
platform,
2626
};
27-
} else {
28-
return {
29-
...getEnvUrls(Env.DEV),
30-
env: Env.DEV,
31-
platform,
32-
};
33-
}
27+
// } else {
28+
// return {
29+
// ...getEnvUrls(Env.DEV),
30+
// env: Env.DEV,
31+
// platform,
32+
// };
33+
// }
3434
};
3535

36+
console.log(VERCEL_ENV)
37+
3638
const storage: SDK.AuthStorageOptions = {
3739
getLoginResponse: async () => {
3840
const storedResponse = localStorage.getItem(AUTH_WALLET_SESSION_NAME);

0 commit comments

Comments
 (0)