Infer server port only in dev env

This commit is contained in:
schroda
2025-01-23 12:15:33 +01:00
parent 2cfbaf8148
commit c42e51b6f9
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
*/
export const defaultPromiseErrorHandler = (name: string) => (error: any) => {
if (process.env.NODE_ENV === 'production') {
if (import.meta.env.PROD) {
return;
}