Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Setting timeout with serverless.yml doesn't work #273

@jerrygreen

Description

@jerrygreen

Describe the bug

The timeout setting in my serverless.yml doesn't work. Deployed functions have their default 10 seconds.

For me this is especially important for pages/api functions, not just pages

Steps to reproduce

Deploy a project with one of the following configs:

# serverless.yml
my-app:
  component: serverless-next.js
  inputs:
    timeout: 90
    memory: 1024
# serverless.yml
my-app:
  component: serverless-next.js
  inputs:
    timeout:
      apiLambda: 90
    memory:
      apiLambda: 1024

Expected behavior
My timeout setting to be equal 1 minute 30 seconds.

Screenshots
Btw, memory input works, but timeout doesn't:

image

Desktop:

  • OS: macOS
  • Version: 10.15.2

Serverless versions:
Framework Core: 1.60.4
Plugin: 3.2.6
SDK: 2.2.1
Components Core: 1.1.2
Components CLI: 1.4.0

"serverless-next.js": "1.7.3"

Additional context
I'm trying to mitigate 503 error, which seems to be pretty popular:

#181
#222
#146

My pages/api function is pretty time consuming, will take about a minute (I'm playing with puppeteer and chrome-aws-lambda)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions