menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team
Posts
Members
Info

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?

thumbsup
0
message-simple
8
Deleted·17d# Micro

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…

thumbsup
0
message-simple
1

What's the difference between deploy apollo-server-micro and apollo-server?

thumbsup
1
message-simple
4

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…

thumbsup
0
message-simple
1

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…

thumbsup
0
message-simple
8

micro-session

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…

thumbsup
0
message-simple
0

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…

thumbsup
3
message-simple
21

Maintain Database Connection

How do I maintain the database connection throughout the functions lifetime--while the function is warmed up/is warm.

thumbsup
1
message-simple
5

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…

thumbsup
2
message-simple
11

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…

thumbsup
0
message-simple
1