Code Monkey home page Code Monkey logo

Comments (3)

n86ies avatar n86ies commented on June 27, 2024

Same here, did you find a solution yet?

from next-payload-demo.

jmikrut avatar jmikrut commented on June 27, 2024

Wellllll, that warning message is on our radar to fix, but I think it's not exactly legit. If you look at the handler code for those endpoints, they clearly do send responses. We should have answers for this shortly.

I think the slowness you're seeing in dev is a result of each endpoint having to compile in dev mode, and in prod, it's a result of serverless cold starts. I think we can also improve a bit of the cold start issue, but not sure how much we can do about the dev endpoints needing to compile.

Regardless, I will post back with a bit more info here in a bit!

from next-payload-demo.

jmikrut avatar jmikrut commented on June 27, 2024

Hey @culicom and @samtietjen we've just looked into this extensively and were able to fix the warnings, but there are still cold start times to deal with.

There's little we can do at this point unfortunately as it seems like slow cold starts are a pretty common issue with Vercel API routes in general. We will be moving to edge functions as soon as we can, but for now, if slow starts are a concern, we'd suggest Payload Cloud instead.

Does that make sense?

from next-payload-demo.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.