Infer server port only in dev env
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
export const defaultPromiseErrorHandler = (name: string) => (error: any) => {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
if (import.meta.env.PROD) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user