diff --git a/apps/webui/src/lib/auth.ts b/apps/webui/src/lib/auth.ts index 6310cc8..f375e8f 100644 --- a/apps/webui/src/lib/auth.ts +++ b/apps/webui/src/lib/auth.ts @@ -93,7 +93,6 @@ export function toApiErrorResponse(error: unknown): NextResponse { { status: 400 } ); } - // eslint-disable-next-line no-console console.error('[api]', error); return NextResponse.json({ error: 'Internal server error' }, { status: 500 }); } diff --git a/apps/webui/vitest.config.ts b/apps/webui/vitest.config.ts new file mode 100644 index 0000000..d55efcb --- /dev/null +++ b/apps/webui/vitest.config.ts @@ -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') + } + } +});