Skip to content

Commit

Permalink
fix: invalid url for hono server
Browse files Browse the repository at this point in the history
  • Loading branch information
apteryxxyz committed Oct 20, 2024
1 parent 4919416 commit 7f0796b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/carbon/src/classes/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class Client extends Plugin {
if (!options.clientId) throw new Error("Missing client ID")
if (!options.publicKey) throw new Error("Missing public key")
if (!options.token) throw new Error("Missing token")
if (!options.deploySecret && !options.disableDeployRoute)
if (!options.deploySecret && !options.disableDeployRoute)
throw new Error("Missing deploy secret")

this.options = options
Expand Down
2 changes: 1 addition & 1 deletion packages/carbon/src/createHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function createHandle<Env extends PartialEnv = PartialEnv>(

return async (req: Request, ctx?: Context) => {
const method = req.method
const url = new URL(req.url)
const url = new URL(req.url, "http://localhost")
const pathname = //
resolveRequestPathname(new URL(client.options.baseUrl), url)
if (!pathname) return new Response("Not Found", { status: 404 })
Expand Down

0 comments on commit 7f0796b

Please sign in to comment.