-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsupabase.ts
More file actions
32 lines (28 loc) · 959 Bytes
/
supabase.ts
File metadata and controls
32 lines (28 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import type { InitProvider, InitState } from '../types.js'
export function createSupabaseProvider(): InitProvider {
return {
name: 'supabase',
introMessage: 'Setting up CipherStash for your Supabase project...',
connectionOptions: [
{
value: 'supabase-js',
label: 'Supabase JS Client',
hint: 'recommended',
},
{ value: 'drizzle', label: 'Drizzle ORM' },
{ value: 'prisma', label: 'Prisma' },
{ value: 'raw-sql', label: 'Raw SQL / pg' },
],
getNextSteps(state: InitState): string[] {
const steps = ['Set up your database: npx stash-forge setup']
if (state.clientFilePath) {
steps.push(`Edit your encryption schema: ${state.clientFilePath}`)
}
steps.push(
'Supabase guides: https://cipherstash.com/docs/stack/encryption/supabase',
'Need help? #supabase in Discord or support@cipherstash.com',
)
return steps
},
}
}