Skip to content

Commit

Permalink
Merge branch 'main' into ktlo/step-ref-warn
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams authored Dec 10, 2024
2 parents 5de1b22 + 01422c6 commit 376032e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
6 changes: 6 additions & 0 deletions packages/inngest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# inngest

## 3.27.5

### Patch Changes

- [#773](https://github.com/inngest/inngest-js/pull/773) [`fb745ef`](https://github.com/inngest/inngest-js/commit/fb745ef749d851031c494f602ff8611a6b1dab14) Thanks [@amh4r](https://github.com/amh4r)! - Fix Nuxt and H3 uses https in dev

## 3.27.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/inngest/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@inngest/sdk",
"description": "Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.",
"version": "3.27.4",
"version": "3.27.5",
"include": [
"./src/**/*.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/inngest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inngest",
"version": "3.27.4",
"version": "3.27.5",
"description": "Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
16 changes: 10 additions & 6 deletions packages/inngest/src/h3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ export const serve = (
body: () => readBody(event),
headers: (key) => getHeader(event, key),
method: () => event.method,
url: () =>
new URL(
url: () => {
let scheme = "https";
if ((processEnv("NODE_ENV") ?? "dev").startsWith("dev")) {
scheme = "http";
}

return new URL(
String(event.path),
`${
processEnv("NODE_ENV") === "development" ? "http" : "https"
}://${String(getHeader(event, "host"))}`
),
`${scheme}://${String(getHeader(event, "host"))}`
);
},
queryString: (key) => {
const param = getQuery(event)[key];
if (param) {
Expand Down

0 comments on commit 376032e

Please sign in to comment.