Paulo De Mitri@paulogdm
Using .env file to set enviroment varibles with micro and pm2 outside now
I'm used to use .env files for setting my secret keys and additional config for my different environments, with micro-dev, .env files works fine, but when i try to use same file with micro doest not work. I am missing something?
502 Error for deployed serverless functions
Hey there! I'm just figuring out how to use ZEIT's serverless functions as an API to access my MySQL DB. Locally it works like a charm but I'm always getting a 502 error, when deploying my function. Did anyone had similar experiences and knows how to fix this? I'm happy for any…
POST multipart/form-data into micro
I'm recieving a POST request into micro that carries multipart/form-data in it. In my example, it's of ContentType image/png I can't figure out how to turn that back into a working file. I'm using the buffer within micro, eg: But if I write the resulting buffer to the…
Where are the error logs on zeit?
I tried https://github.com/zeit/micro/tree/master/examples/external-api-call locally, changing the api.example.com url to a working url and it is working. When I go on localhost:3000, the script return the correct result. If I deploy with now, then it looks like successful but…
This is still a WIP, so please don't advertise this too much, but I've been working on a session "middleware" for micro. It currently works with at least connect-mongo. You can find it here: https://github.com/meyer9/micro-session. Pull requests are welcome and if you find a…
How to run Micro on Now V2
Ive written a small graphql service using micro (followed the example). It runs fine under micro-dev and micro on my localhost. It deploys and runs under Now V1 but doesn't run under Now V2. Im using the @now/node builder which reports a successful. But i get a 504: An error…
Is Micro abandonware?
I tried to build and deploy serverless functions tonight using Micro and I couldn't for the life of me figure out how to deploy it until I found a thread on here or in GitHub issues where someone revealed they made their own build tool, whereas Zeit has not released an official…
Are there any good mocking libraries for Micro's Request/Response objects?
There is the popular node-mocks-http package, but this is primarily written for express users, so the req/res objects aren't exactly right. (And if your project is TypeScript, you actually have to add @types/express as a dependency to make it work, which feels a bit ugly in if…