Remove console error suppression in toApiErrorResponse for improved error logging
This commit is contained in:
@@ -93,7 +93,6 @@ export function toApiErrorResponse(error: unknown): NextResponse {
|
|||||||
{ status: 400 }
|
{ status: 400 }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('[api]', error);
|
console.error('[api]', error);
|
||||||
return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
|
return NextResponse.json({ error: 'Internal server error' }, { status: 500 });
|
||||||
}
|
}
|
||||||
|
|||||||
22
apps/webui/vitest.config.ts
Normal file
22
apps/webui/vitest.config.ts
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import path from 'path';
|
||||||
|
import { defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
// Avoid Vite trying to load the Next.js-flavored postcss.config.mjs
|
||||||
|
// (array-of-strings plugin syntax), which the standalone PostCSS loader
|
||||||
|
// used by Vite/Vitest cannot parse. None of our unit tests need CSS.
|
||||||
|
css: {
|
||||||
|
postcss: {
|
||||||
|
plugins: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
environment: 'node',
|
||||||
|
css: false
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': path.resolve(__dirname, './src')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user