-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.gitpod.yml
49 lines (45 loc) · 1.67 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
#
# Learn more about this Gitpod configuration file in the documentation at https://www.gitpod.io/docs/configuration
#
ports:
- port: 3000
onOpen: open-preview
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks
tasks:
- init: npm install
command: |
(
RED='\033[0;31m'
BOLD='\033[1;30m'
NC='\033[0m' # No Color
gp env | grep --quiet VITE_SUPABASE_URL
if [ $? -eq 1 ]
then
printf "${RED}Missing environment variables for supabase.${NC}\n\n"
printf "To configure them:\n\n1. run: ${BOLD}gp env -e VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key${NC}\n2. stop and re-start your workspace\n"
else
export HMR_HOST=`gp url 3000`
npm run dev
fi
)
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false
vscode:
extensions:
- svelte.svelte-vscode