Skip to content

Commit f623615

Browse files
committed
chore: update supabase
1 parent 67d6f93 commit f623615

File tree

13 files changed

+128
-150
lines changed

13 files changed

+128
-150
lines changed

.env.test.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Supabase Configuration
55
VITE_SUPABASE_URL=http://localhost:54321
6-
VITE_SUPABASE_ANON_KEY=your_anon_key_here
6+
VITE_SUPABASE_PUBLISHABLE_KEY=your_anon_key_here
77
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
88

99
# Database Configuration

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ volta install node
6969
# Extract Supabase URL
7070
echo "VITE_SUPABASE_URL=http://localhost:54321" > .env.local
7171

72-
# Extract and add Supabase anon key
73-
echo "VITE_SUPABASE_ANON_KEY=$(supabase status | grep "anon key:" | awk '{print $3}')" >> .env.local
72+
# Extract and add Supabase Publishable key
73+
echo "VITE_SUPABASE_PUBLISHABLE_KEY=$(supabase status | grep "Publishable key:" | awk '{print $3}')" >> .env.local
7474
```
7575

7676
2. Install dependencies: `npm install --legacy-peer-deps`

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Run linter
3535
run: npm run lint
36-
36+
3737
- name: Build project
3838
run: npm run build
3939

@@ -89,7 +89,7 @@ jobs:
8989
cat > .env.test << EOF
9090
# Test Environment Configuration for CI
9191
VITE_SUPABASE_URL=http://localhost:54321
92-
VITE_SUPABASE_ANON_KEY=ANON_KEY_PLACEHOLDER
92+
VITE_SUPABASE_PUBLISHABLE_KEY=ANON_KEY_PLACEHOLDER
9393
SUPABASE_SERVICE_ROLE_KEY=SERVICE_KEY_PLACEHOLDER
9494
TEST_DATABASE_URL=postgresql://postgres:postgres@localhost:54322/postgres
9595
EOF
@@ -100,19 +100,19 @@ jobs:
100100
echo "🚀 Starting Supabase services..."
101101
${{ env.SUPABASE_CMD }} start
102102
echo "✅ Supabase started successfully"
103-
103+
104104
- name: Update environment with actual keys
105105
run: |
106106
echo "🔑 Extracting API keys..."
107-
ANON_KEY=$(${{ env.SUPABASE_CMD }} status | grep "anon key" | awk '{print $3}')
108-
SERVICE_KEY=$(${{ env.SUPABASE_CMD }} status | grep "service_role key" | awk '{print $3}')
109-
107+
ANON_KEY=$(${{ env.SUPABASE_CMD }} status -o json | grep '"PUBLISHABLE_KEY"' | sed 's/.*: "\(.*\)".*/\1/')
108+
SERVICE_KEY=$(${{ env.SUPABASE_CMD }} status -o json | grep '"SERVICE_ROLE_KEY"' | sed 's/.*: "\(.*\)".*/\1/')
109+
110110
echo "Anon key length: ${#ANON_KEY}"
111111
echo "Service key length: ${#SERVICE_KEY}"
112-
112+
113113
sed -i "s/ANON_KEY_PLACEHOLDER/$ANON_KEY/g" .env.test
114114
sed -i "s/SERVICE_KEY_PLACEHOLDER/$SERVICE_KEY/g" .env.test
115-
115+
116116
echo "✅ Environment updated with actual keys"
117117
118118
- name: Load test environment

0 commit comments

Comments
 (0)