Skip to content

Commit

Permalink
feat(next.config): remove redundant typeof window === 'undefined' check
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Feb 10, 2025
1 parent b49914d commit 9c2a894
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import { startupCheckRPCs } from './scripts/startup-checks/rpc.mjs';
logEnvironmentVariables();
buildDynamics();

if (
process.env.RUN_STARTUP_CHECKS === 'true' &&
typeof window === 'undefined'
) {
if (process.env.RUN_STARTUP_CHECKS === 'true') {
void startupCheckRPCs();
}

Expand Down

0 comments on commit 9c2a894

Please sign in to comment.