-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
38 lines (32 loc) · 963 Bytes
/
.gitpod.yml
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
33
34
35
36
37
38
image:
file: .gitpod.Dockerfile
tasks:
- name: Supabase Installation
init: echo "Image built. Lets start Supabase..."
command: |
supabase start
# Extract environment variables from supabase CLI, write to .env
supabase status -o env | sed 's/^/SUPABASE_/' > .env
gp sync-done install
- name: Link to hosted Supabase
command: |
gp sync-await install
if [ -z "$SUPABASE_ACCESS_TOKEN" ]; then
echo "SUPABASE_ACCESS_TOKEN is NOT set. Skipping. Set in Gitpod to connect..."
else
supabase login --token "$SUPABASE_ACCESS_TOKEN"
echo "SUPABASE_ACCESS_TOKEN is set. Account connected."
fi
ports:
- name: Supabase
description: Frontend of the Supabase
port: 54323
onOpen: open-browser #open-preview not working
- name: API
description: API Endpoint
port: 54321
visibility: public
onOpen: ignore
vscode:
extensions:
- denoland.vscode-deno