Skip to content

Commit

Permalink
fix: add service_role
Browse files Browse the repository at this point in the history
  • Loading branch information
soedirgo committed Mar 31, 2021
1 parent bb2bde6 commit a99522d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/commands/init.ts
Expand Up @@ -43,8 +43,10 @@ export default {
},
])

const apiKey =
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJhdWQiOiIiLCJzdWIiOiIiLCJSb2xlIjoicG9zdGdyZXMifQ.magCcozTMKNrl76Tj2dsM7XTl_YH0v0ilajzAvIlw3U'
const anonApiKey =
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJyb2xlIjoiYW5vbiJ9.36fUebxgx1mcBo4s19v0SzqmzunP--hm_hep0uLX0ew'
const serviceRoleApiKey =
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTYwMzk2ODgzNCwiZXhwIjoyNTUwNjUzNjM0LCJyb2xlIjoic2VydmljZV9yb2xlIn0.necIJaiP7X2T2QjGeV-FhpkizcNTX8HjDDBAxpgQTEI'

const spinner = spin('Initializing project...')

Expand All @@ -65,15 +67,17 @@ export default {
props: {
kongPort,
dbPort,
apiKey,
anonApiKey,
serviceRoleApiKey,
},
})
)
)

spinner.succeed('Project initialized.')
fancy(`Supabase URL: ${highlight(`http://localhost:${kongPort}`)}
Supabase Key: ${highlight(apiKey)}
Supabase Key (anon, public): ${highlight(anonApiKey)}
Supabase Key (service_role, private): ${highlight(anonApiKey)}
Database URL: ${highlight(`postgres://postgres:postgres@localhost:${dbPort}/postgres`)}
Run ${highlight('supabase start')} to start local Supabase.
Expand Down
2 changes: 1 addition & 1 deletion src/templates/init/docker/kong/kong.yml
Expand Up @@ -42,4 +42,4 @@ services:
consumers:
- username: 'private-key'
keyauth_credentials:
- key: <%= props.apiKey %>
- key: <%= props.anonApiKey %>

0 comments on commit a99522d

Please sign in to comment.