netlify / cli

Netlify Command Line Interface
http://cli.netlify.com
MIT License
1.58k stars 352 forks source link

Website build with a lot of assets timeout => allow overriding `FRAMEWORK_PORT_TIMEOUT` #6061

Open Quentin-Danjou opened 1 year ago

Quentin-Danjou commented 1 year ago

Describe the bug

Websites that download a lot of assets timeout because FRAMEWORK_PORT_TIMEOUT is set to a default value of 10min. In our case depending on how good the internet connection is we are exceeding those 10min.

We would need a way to tell netlify-cli to wait for longer.

Steps to reproduce

Create a Gatsby website that has to download lot of content or throttle your connexion to make it longer than 10min to build

Configuration

No response

Environment

System: OS: macOS 13.2.1 CPU: (10) arm64 Apple M1 Max Memory: 95.30 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm npmGlobalPackages: netlify-cli: 17.1.0

Ash-Matter commented 9 months ago

Supporting this request.

I've been searching for a solution to my local build not being able to start due to the Netlify Dev could not start or connect to and having read this, it now makes complete sense as to why.

Quentin-Danjou commented 7 months ago

Just wanted to followup on the issue for those who encounter the same limitation; my workaround has been to fork the project and override the timeout myself (I personally put 20min for my project).