Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Aug 12, 2023
1 parent dcaa337 commit 9089bef
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_SUPABASE_ANON_KEY=
VITE_SUPABASE_PROJECT_URL=
VITE_SUPABASE_PROJECT_URL=https://kcpxeoxkmblpivpgwdsm.supabase.co
SUPABASE_SERVICE_ROLE_KEY=
4 changes: 2 additions & 2 deletions .github/workflows/deploy-supabase.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Supabase

on:
workflow_dispatch:
Expand All @@ -10,7 +10,7 @@ on:

jobs:
deploy:
name: Deploy to Supabase
name: Deploy functions
runs-on: ubuntu-latest

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-vercel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Vercel

on:
workflow_dispatch:
Expand All @@ -11,7 +11,7 @@ on:

jobs:
deploy:
name: Deploy to Vercel
name: Deploy to Production
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
"cSpell.words": [
"catto",
"Supabase"
]
],

"files.associations": {
"vercel.json": "jsonc"
}
}
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"redirects": [
{
"source": "/api/files",
// We have to hardcode the URL here for Vercel.
// In development, we get redirected by the API route.
// This is only for production build where request body is limited
// to approx. 5MB and doesn't allow more, even with the API route redirect.
"destination": "https://kcpxeoxkmblpivpgwdsm.supabase.co/functions/v1/upload-file",
"permanent": true
}
Expand Down

0 comments on commit 9089bef

Please sign in to comment.