Skip to content

Commit

Permalink
Merge branch 'main' into lyka/enable-mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 authored Nov 16, 2023
2 parents 806eb64 + f02de1d commit eff6a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/faucet/DefaultNetworkInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class DefaultNetworkInterceptor implements NestInterceptor {
intercept(context: ExecutionContext, next: CallHandler) {
const request = context.switchToHttp().getRequest();
const { network } = request.query;
const { networks } = getEnvironment(process.env.NODE_ENV);
const { networks } = getEnvironment(process.env.NODE_ENV || 'production');

if (!network || !networks.includes(network)) {
request.query.network = EnvironmentNetwork.MainNet; // Set your default network here
Expand Down

0 comments on commit eff6a44

Please sign in to comment.