Skip to content

Commit

Permalink
remove dev api_token env
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrach-tayo committed Jan 22, 2025
1 parent 4d11590 commit 605fae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-sync-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
if: github.ref == 'refs/heads/develop'
uses: cloudflare/wrangler-action@v3
env:
API_TOKEN: ${{ secrets.API_TOKEN_PROD }}
API_TOKEN: ${{ secrets.API_TOKEN_DEV }}
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down
3 changes: 1 addition & 2 deletions sync-server/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ DB_TABLE= "DocumentStore"
NODES_API= "http://host.docker.internal:5420"
ENVIRONMENT="dev"
DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate"
API_TOKEN="auth-token"

[env.dev]
durable_objects.bindings = [{ name = "Automerge", class_name = "AutomergeServer" }]
vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate", API_TOKEN="auth-token" }
vars = { DB_TABLE= "DocumentStore", NODES_API= "http://localhost:5420", ENVIRONMENT="dev", DATABASE_URL= "postgresql://walter:white@host.docker.internal:5433/boilerplate" }
hyperdrive = [{ binding = "NODES_DB", id = "856af129675e4140accc0ccabbc2ee20" }]

[env.staging]
Expand Down

0 comments on commit 605fae0

Please sign in to comment.