Onebite.dev

Developer tips & trick, one bite at a time

Developer tips & trick around nodejs


Import function from another file in NodeJS without module If you need to add an external function from other file into a nodejs file without changing the type into module type you can use this commonJS method
How to solve Cannot use import statement outside a module error This is How to solve Cannot use import statement outside a module error when running a nodejs application
Create Open Graph Image generator, introducing imagin.live We need an image for each of our blog post to make it stand out on social media. But generating for each one for our post is not fun. That's why you'll love Imagin. It's a post about how I make Imagin, dynamic open graph image generator
Solution for preflight CORS issue in serverless function This is how you can solve preflight CORS issue in vercel serverless function when building API in nodejs
Handling API request based on method in Vercel Nodejs Learn how to handle API request based on method, example GET, POST, PUT or DELETE request in Vercel Nodejs serverless function
Nodejs serverless function in vercel Learn how to deploy and write nodejs serverless function in vercel platform for free


Colleciton of bitesize articles for developer around nodejs