Skip to content

Commit 760a180

Browse files
authored
Replace supabase functions with api server (#1665)
1 parent 1fab4aa commit 760a180

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1765
-1519
lines changed

.github/workflows/api_cd.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
paths:
5+
- "apps/api/**"
6+
branches:
7+
- main
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 60
13+
concurrency: api-fly-deploy
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: superfly/flyctl-actions/setup-flyctl@master
17+
- run: flyctl deploy --config apps/api/fly.toml --remote-only
18+
env:
19+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

.github/workflows/db_ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://supabase.com/docs/guides/deployment/ci/testing
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- supabase/**
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- supabase/**
14+
15+
jobs:
16+
db-tests:
17+
name: Database tests
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 20
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: supabase/setup-cli@v1
23+
with:
24+
version: latest
25+
- run: supabase db start
26+
- run: supabase test db

.github/workflows/desktop_cd.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ jobs:
9898
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
9999
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
100100
VITE_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
101-
VITE_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.SUPABASE_PUBLISHABLE_KEY }}
101+
VITE_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_PUBLISHABLE_KEY }}
102102
VITE_APP_URL: ${{ secrets.VITE_APP_URL }}
103+
VITE_PRO_PRODUCT_ID: ${{ secrets.VITE_PRO_PRODUCT_ID }}
103104
- run: |
104105
mkdir -p target/release/
105106
find target/${{ matrix.target }}/release -type f -not -path "*/\.*" -exec cp {} target/release/ \;

.github/workflows/owhisper_cd.yaml

Lines changed: 0 additions & 163 deletions
This file was deleted.

.github/workflows/owhisper_cd_docker.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/supabase.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Secrets*.toml
77
.env.prod
88
.venv
99
**/__pycache__/
10+
.supabase/
11+
.stripe/
1012

1113
*storybook.log
1214
.cache/

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins:
33
- "@trivago/prettier-plugin-sort-imports"
44
- "@prettier/plugin-oxc"
55
importOrder:
6+
- "^\\./instrument$"
67
- "<THIRD_PARTY_MODULES>"
78
- "^@hypr/(.*)$"
89
- "^[./]"

.vscode/extensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"recommendations": [
33
"rust-lang.rust-analyzer",
4-
"dprint.dprint",
5-
"denoland.vscode-deno"
4+
"dprint.dprint"
65
]
76
}

.vscode/settings.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,5 @@
2020
"rust-analyzer.checkOnSave": true,
2121
"rust-analyzer.check.allTargets": true,
2222
"rust-analyzer.cargo.targetDir": "target/analyzer",
23-
"rust-analyzer.cargo.extraEnv": { "MACOSX_DEPLOYMENT_TARGET": "14.2" },
24-
"deno.lint": true,
25-
"deno.enable": true,
26-
"deno.enablePaths": ["apps/web/supabase/functions"],
27-
"deno.unstable": [
28-
"bare-node-builtins",
29-
"byonm",
30-
"sloppy-imports",
31-
"unsafe-proto",
32-
"webgpu",
33-
"broadcast-channel",
34-
"worker-options",
35-
"cron",
36-
"kv",
37-
"ffi",
38-
"fs",
39-
"http",
40-
"net"
41-
]
23+
"rust-analyzer.cargo.extraEnv": { "MACOSX_DEPLOYMENT_TARGET": "14.2" }
4224
}

0 commit comments

Comments
 (0)