diff --git a/.github/workflows/deploy-sync-server.yaml b/.github/workflows/deploy-sync-server.yaml index 51678270..c9419b24 100644 --- a/.github/workflows/deploy-sync-server.yaml +++ b/.github/workflows/deploy-sync-server.yaml @@ -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 }} diff --git a/sync-server/wrangler.toml b/sync-server/wrangler.toml index 7c794940..580fce80 100644 --- a/sync-server/wrangler.toml +++ b/sync-server/wrangler.toml @@ -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]