The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'
export default defineConfig({
resolve: { alias: { '@': fileURLToPath(new URL('.', import.meta.url)) } },
oxc: { jsx: { runtime: 'automatic' } },
test: {
projects: [
{
extends: true,
test: {
name: 'jsdom',
environment: 'jsdom',
include: ['tests/**/*.test.tsx'],
},
},
{
extends: true,
test: {
name: 'node',
environment: 'node',
include: ['middleware.test.ts', 'scripts/*.test.ts', './lib/*.test.ts'],
},
},
],
},
})