This commit is contained in:
7
apps/web/server/plugins/validate-runtime-config.ts
Normal file
7
apps/web/server/plugins/validate-runtime-config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
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())
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user