giovannibenussi.hashnode.devGit Stash TipsShow Stash Diff To see the difference between the current code and some stash's entry, you can run the following: git stash show -p You can specify a stash index too: // git stash list stash@{0}: First entry stash@{1}: Second entry stash@{2}: Third ...Aug 29, 2022ยท2 min read
giovannibenussi.hashnode.dev๐ฅ๐ฉโ๐ Type-safe Environment Variables in Cloudflare WorkersPublished originally on www.giovannibenussi.com TLDR; Define an EnvType type and set it to the env variable in your workers: type EnvType = { API_VERSION: string; }; export default { fetch(request: Request, env: EnvType): Response { return ...Aug 26, 2022ยท2 min read
giovannibenussi.hashnode.devEdge API Routes on Next.jsPublished originally on www.giovannibenussi.com Having a switchable Next.js runtime has been in the works for a while and it's finally here to test it out! The API is simple and the performance improvements are great ๐. Set Edge Runtime For an API ...Aug 26, 2022ยท3 min read