Skip to content

Commit

Permalink
chore: skip env validation when lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Jan 18, 2024
1 parent cd0ee55 commit 5569dd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "tsec --noEmit && next build",
"analyse": "cross-env ANALYSE=true next build",
"start": "next start",
"lint": "next lint",
"lint": "cross-env SKIP_ENV_VALIDATION=true next lint",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css,json,yaml,yml,mjs}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,css,json,yaml,yml,mjs}\""
},
Expand Down
1 change: 1 addition & 0 deletions src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const env = createEnv({
experimental__runtimeEnv: {
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY,
},
skipValidation: process.env.SKIP_ENV_VALIDATION,
});

0 comments on commit 5569dd4

Please sign in to comment.