8 lines
308 B
TypeScript
8 lines
308 B
TypeScript
export default defineNitroPlugin(() => {
|
|
// Keep builds and unit tests credential-free, but fail before serving traffic
|
|
// when a production Nitro process starts with an incomplete Supabase setup.
|
|
if (process.env.NODE_ENV === 'production') {
|
|
assertRequiredSupabaseConfig(useRuntimeConfig())
|
|
}
|
|
})
|