netlify / cli

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

Netlify CLI hangs waiting for framework port 3000 on Astro 3 #5978

Closed wrainbird closed 1 year ago

wrainbird commented 1 year ago

Describe the bug

With Astro 3 and Node v18>, Netlify CMS hangs on waiting for framework port 3000

Steps to reproduce

  1. Run git clone https://github.com/wrainbird/astro3-netlify-cli-port-bug.git
  2. Navigate to the project directory
  3. Install dependencies
  4. Run netlify dev

Configuration

[dev] command = "yarn dev" framework = "#custom" targetPort = 3000

Environment

System: OS: macOS 12.6 CPU: (10) arm64 Apple M1 Pro Memory: 1.08 GB / 32.00 GB Shell: 5.8.1 - /bin/zsh

Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm

npmGlobalPackages: netlify-cli: 16.2.0

wrainbird commented 1 year ago

Will close now, with Astro 3 Netlify CMS will work if you set targetPort to 4321. Here is my updated netlify.toml file:

[dev]
  command = "yarn dev"
  framework = "#custom"
  targetPort = 4321