Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve Switchboard from Subdirectories #108

Merged
merged 52 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
911f2b1
fix: await add fees
froid1911 Mar 15, 2024
69f20b6
chore: removed some not required checks
froid1911 Mar 15, 2024
ed714e9
refactor: createMany fees at once
froid1911 Mar 15, 2024
07772f3
fix: await add fees (#106)
froid1911 Mar 16, 2024
de28717
feat: added base path to next config
froid1911 Mar 21, 2024
82c0c67
feat: added assetPrefix
froid1911 Mar 21, 2024
a897f67
fix: sub dir deployment frontend
froid1911 Mar 21, 2024
2e97e6c
fix: updated docker build arg
froid1911 Mar 21, 2024
4831ef7
fix: base path
froid1911 Mar 21, 2024
13d39d8
feat: introduce path for nginx proxy
froid1911 Mar 21, 2024
c1ee8d1
feat: introduce path for nginx proxy
froid1911 Mar 21, 2024
f79b4a6
chore: move frontend to end of nginx
froid1911 Mar 21, 2024
36ada29
fix: base path
froid1911 Mar 21, 2024
f1e742c
fix: base path for backend routes
froid1911 Mar 21, 2024
dc67487
fix: rewrites to proper base path
froid1911 Mar 21, 2024
d8e5720
fix: rewrite rules
froid1911 Mar 21, 2024
6f88f0d
feat: added express router for base path
froid1911 Mar 22, 2024
5b7332d
fix: removed rewrite rules
froid1911 Mar 22, 2024
aaeaa31
feat: added basepath to explorer endpoint
froid1911 Mar 22, 2024
3a731ac
fix: endpoint base path
froid1911 Mar 22, 2024
c1d9652
fix: base path nginx router switchboard
froid1911 Mar 22, 2024
e42b3e1
fix: favicon path
froid1911 Mar 22, 2024
75fb4ef
fix: base path for assets
froid1911 Mar 22, 2024
58eb798
ci: added arbitrum deployment pipeline
froid1911 Mar 20, 2024
b495d47
chore: removed codeowners file
froid1911 Mar 20, 2024
4f48407
cicd: added staging deployment
froid1911 Mar 22, 2024
34596c5
chore: bump deps
froid1911 Mar 27, 2024
4976115
fix: added sales proceeds
froid1911 Mar 27, 2024
9cfcddc
chore: wording
froid1911 Mar 27, 2024
bea84e8
fix: name in assets not found
froid1911 Mar 28, 2024
96e3c2b
feat: in memory cache for drives and transmitters
froid1911 Mar 29, 2024
90a7b31
chore: cleanup
froid1911 Mar 29, 2024
c0d4b1d
chore: cleanup
froid1911 Mar 29, 2024
5f562b2
chore: removed set transmitter fn
froid1911 Mar 29, 2024
7051545
feat: log listener operation error
acaldas Mar 29, 2024
f6dc104
feat: updated deps and small ts improvements
acaldas Mar 29, 2024
9c86c34
chore: updated document drive deb and prisma schema
froid1911 Apr 1, 2024
913804e
feat: error logging
froid1911 Apr 2, 2024
b362cf5
chore: catch drive init exceptions
froid1911 Apr 2, 2024
9b1e437
chore: cleanup
froid1911 Apr 2, 2024
2ee3c74
feat: update deps
acaldas Apr 3, 2024
877bd53
feat: documents query
froid1911 Apr 2, 2024
4e2ff15
feat: added query to fetch all documents at once from a drive
froid1911 Apr 2, 2024
840ae2b
feat: added sentry node
froid1911 Apr 3, 2024
42ce003
chore: removed comments
froid1911 Apr 3, 2024
dcafa3a
chore: clear cache
froid1911 Apr 3, 2024
45fd576
fix(apollo): document operations
froid1911 Apr 3, 2024
0ba6f6a
fix: document operations type
froid1911 Apr 3, 2024
1322e93
feat: added makerdao and updated powerhouse deployments pipeline
froid1911 Apr 4, 2024
0b5d19b
fix: updated docker build arg
froid1911 Mar 21, 2024
9d23200
feat: added express router for base path
froid1911 Mar 22, 2024
215801b
Merge branch 'main' into staging
froid1911 Apr 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build-and-deploy-arbitrum-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Switchboard Arbitrum

on:
push:
branches: [deployments/arbitrum]
jobs:
build:
environment: Arbitrum Production
runs-on: ubuntu-latest
steps:
# Check-out your repository.
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release API to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_API_NAME }}
dockerfile_directory: ./api
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release Frontend to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_FRONTEND_NAME }}
dockerfile_directory: ./frontend
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_NGINX_NAME }}
dockerfile_directory: ./nginx
dockerfile_name: Dockerfile
process_type: web
42 changes: 42 additions & 0 deletions .github/workflows/build-and-deploy-arbitrum-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy Switchboard Arbitrum Staging

on:
push:
branches: [arb-ltip]
jobs:
build:
environment: Arbitrum Staging
runs-on: ubuntu-latest
steps:
# Check-out your repository.
- name: Checkout
uses: actions/checkout@v2

- name: Build, Push and Release API to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_API_NAME }}
dockerfile_directory: ./api
dockerfile_name: Dockerfile
process_type: web
- name: Build, Push and Release Frontend to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_FRONTEND_NAME }}
dockerfile_directory: ./frontend
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
- name: Build, Push and Release NGINX to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
email: ${{ secrets.HEROKU_EMAIL }}
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_NGINX_NAME }}
dockerfile_directory: ./nginx
dockerfile_name: Dockerfile
process_type: web
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
dockerfile_directory: ./frontend
dockerfile_name: Dockerfile
process_type: web
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }}"
docker_options: "--build-arg NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST=${{ secrets.NEXT_PUBLIC_SWITCHBOARD_GRAPHQL_HOST }} --build-arg BASE_PATH=/makerdao/switchboard"
- name: Build, Push and Release Wundergraph to Heroku. # Your custom step name
uses: gonuit/[email protected]
with:
Expand Down
2 changes: 0 additions & 2 deletions CODEOWNERS

This file was deleted.

12 changes: 6 additions & 6 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
"watch": "vitest watch"
},
"dependencies": {
"@apollo/server": "^4.10.1",
"@apollo/server": "^4.10.2",
"@prisma/client": "5.8.1",
"@types/cookie-parser": "^1.4.7",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"document-drive": "1.0.0-alpha.17",
"document-model": "^1.0.31",
"document-model-libs": "^1.8.0",
"document-model": "^1.0.32",
"document-model-libs": "^1.15.0",
"dotenv": "^16.4.5",
"ethers": "^5.7.2",
"express": "^4.18.3",
"express": "^4.19.2",
"graphql": "^16.8.1",
"graphql-middleware": "^6.1.35",
"graphql-playground-html": "^1.6.30",
Expand All @@ -41,7 +41,7 @@
"pino-pretty": "^10.3.1",
"siwe": "^2.1.4",
"vite-node": "^0.29.8",
"vitest": "^0.31.4",
"vitest": "^0.32.4",
"wildcard-match": "^5.1.3",
"zod": "^3.22.4"
},
Expand All @@ -51,7 +51,7 @@
"@types/express": "^4.17.21",
"@types/jsonwebtoken": "^9.0.6",
"@types/ms": "^0.7.34",
"@types/node": "^18.19.24",
"@types/node": "^18.19.26",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitest/coverage-istanbul": "^0.29.8",
Expand Down
Loading
Loading