Skip to content

Commit

Permalink
update pump endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Dec 18, 2024
1 parent f6c27ae commit 3f80523
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-insects-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"basehub": patch
---

event fixes
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"mean-panthers-give",
"modern-tools-repeat",
"nasty-bananas-ring",
"nasty-insects-teach",
"neat-dingos-push",
"new-avocados-repeat",
"odd-elephants-heal",
Expand Down
6 changes: 6 additions & 0 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# basehub

## 8.0.0-canary.28

### Patch Changes

- event fixes

## 8.0.0-canary.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/basehub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "basehub",
"description": "A very fast Headless CMS.",
"author": "JB <[email protected]>",
"version": "8.0.0-canary.27",
"version": "8.0.0-canary.28",
"license": "MIT",
"repository": "basehub-ai/basehub",
"bugs": "https://github.com/basehub-ai/basehub/issues",
Expand Down
4 changes: 2 additions & 2 deletions packages/basehub/src/react/pump/server-pump.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export const Pump = async <Queries extends Array<PumpQuery>>({
basehubProps.draft = true;
}

const { headers, url, draft } = getStuffFromEnv(basehubProps);
const { headers, draft } = getStuffFromEnv(basehubProps);
const token = headers["x-basehub-token"];
const apiVersion = headers["x-basehub-api-version"];
const pumpEndpoint = getBaseHubAppApiEndpoint(url, "/api/pump");
const pumpEndpoint = "https://aws.basehub.com/pump";

const noQueries = queries.length === 0;

Expand Down
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 0.0.164-canary.28

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.164-canary.27

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground",
"private": true,
"version": "0.0.164-canary.27",
"version": "0.0.164-canary.28",
"scripts": {
"dev": "basehub dev & next dev --port 3003",
"build": "basehub && next build",
Expand Down

0 comments on commit 3f80523

Please sign in to comment.