v2.0.0-beta.0 #1101
pi0
announced in
Announcements
v2.0.0-beta.0
#1101
Replies: 2 comments 4 replies
-
@pi0 Congrats! There seems to be a typo in the Release note: |
Beta Was this translation helpful? Give feedback.
3 replies
-
@pi0 I can't find documentation about deployment to Cloudflare Workers, so I did the following: Worker exampleimport { H3, serve } from 'h3'
const app = new H3()
app.get('/', () => {
return 'ok'
})
serve(app, {
port: 3000
})
/**
* Bind resources to your worker in `wrangler.jsonc`.
*
* After adding bindings, a type definition for the `Env` object can be regenerated
* with `pnpm run cf:typegen`.
*/
declare module 'h3' {
interface H3EventContext {
cloudflare: {
env: Env
ctx: ExecutionContext
}
}
}
wrangler versions upload error
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
⚡ H3 v2 beta is here — fully rewritten on web standards, backward-compatible, and faster than ever!
Release notes: https://h3.dev/blog/v2-beta
All commits: v1.12.0...v2.0.0-beta.0
❤️ Contributors
@aaharu, @AndreyYolkin, @BobbieGoede, @brc, @chadxz, @cjpearson, @danielrentz, @danielroe, @gulshan, @HigherOrderLogic, @hrynevychroman, @huseeiin, @iiio2, @Ingramz, @jerelmiller, @JianJroh, @jordypereira, @kanonji, @kricsleo, @kSpace, @lborgav, @markthree, @maximepvrt, @Maxttier, @Narixius, @OmarMAttia7, @patak, @pi0, @productdevbook, @renovate, @sandros94, @Shhu, @teleskop150750, @typed, @XiNiHa, @Youhan, @ysknsid25,
This discussion was created from the release v2.0.0-beta.0.
Beta Was this translation helpful? Give feedback.
All reactions