UNPKG
@daveyplate/supabase-swr-entities
Version:
latest (4.0.3)
4.0.3
4.0.2
4.0.1
4.0.0
3.0.62
3.0.61
3.0.60
3.0.59
3.0.58
3.0.57
3.0.56
3.0.55
3.0.54
3.0.53
3.0.52
3.0.51
3.0.50
3.0.48
3.0.47
3.0.46
3.0.45
3.0.44
3.0.43
3.0.42
3.0.40
3.0.39
3.0.38
3.0.37
3.0.36
3.0.35
3.0.34
3.0.33
3.0.32
3.0.31
3.0.30
3.0.29
3.0.28
3.0.27
3.0.26
3.0.25
3.0.24
3.0.23
3.0.22
3.0.21
3.0.20
3.0.19
3.0.18
3.0.17
3.0.16
3.0.15
3.0.14
3.0.13
3.0.12
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.29
1.0.28
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
An entity management library for Supabase and SWR
github.com/daveyplate/supabase-swr-entities
@daveyplate/supabase-swr-entities
/
src
/
supabase
/
service-role.ts
10 lines
(8 loc)
•
283 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ createClient
as
createClientPrimitive }
from
'@supabase/supabase-js'
export
function
createAdminClient
(
) {
const
supabase =
createClientPrimitive
( process.
env
.
NEXT_PUBLIC_SUPABASE_URL
!, process.
env
.
SUPABASE_SERVICE_ROLE_KEY
! )
return
supabase }