Skip to content

Commit

Permalink
Fix signup page (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura authored Aug 13, 2024
1 parent 6913e9b commit c58834f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/keychain/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ NEXT_PUBLIC_ADMIN_URL="http://localhost:3002"
NEXT_PUBLIC_API_URL="http://localhost:8000"
# NEXT_PUBLIC_ETH_RPC_MAINNET="https://eth-mainnet.g.alchemy.com/v2/OGPRMquXP3K7oTkLrmVZpjCd1DswtYz3"
# NEXT_PUBLIC_ETH_RPC_SEPOLIA="https://eth-sepolia.g.alchemy.com/v2/mURnclB5pn5elDfyzgTN4W2GR-rOYevI"
# NEXT_PUBLIC_RPC_MAINNET="http://localhost:8001/x/starknet/mainnet"
NEXT_PUBLIC_RPC_SEPOLIA="http://localhost:8001/x/starknet/sepolia"
2 changes: 2 additions & 0 deletions packages/keychain/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ NEXT_PUBLIC_ADMIN_URL="https://cartridge.gg"
NEXT_PUBLIC_API_URL="https://api.cartridge.gg"
# NEXT_PUBLIC_ETH_RPC_MAINNET="https://eth-mainnet.g.alchemy.com/v2/OGPRMquXP3K7oTkLrmVZpjCd1DswtYz3"
# NEXT_PUBLIC_ETH_RPC_SEPOLIA="https://eth-sepolia.g.alchemy.com/v2/mURnclB5pn5elDfyzgTN4W2GR-rOYevI"
# NEXT_PUBLIC_RPC_MAINNET="https://api.cartridge.gg/x/starknet/mainnet"
NEXT_PUBLIC_RPC_SEPOLIA="https://api.cartridge.gg/x/starknet/sepolia"
2 changes: 1 addition & 1 deletion packages/keychain/src/hooks/connection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function ConnectionProvider({ children }: PropsWithChildren) {
// Set rpc and origin if we're not embedded (eg Slot auth/session)
if (!isIframe()) {
setOrigin(urlParams.get("origin") || process.env.NEXT_PUBLIC_ORIGIN);
setRpcUrl(urlParams.get("rpc_url"));
setRpcUrl(urlParams.get("rpc_url") || process.env.NEXT_PUBLIC_RPC_SEPOLIA);
}

const prefundParam = urlParams.get("prefunds");
Expand Down

0 comments on commit c58834f

Please sign in to comment.