cli
cli copied to clipboard
The netlify CLI attempts to access the network despite the --offline option
Describe the bug
Documentation for the dev command says that the option 'offline (boolean) - disables any features that require network access'.
However, this seems inaccurate wrt edge function environment.
Running netlify dev --offline
when the network connectivity is not available starts ok, but eventually throws.
Steps to reproduce
1- cut network connectivity.
2- run npx netlify dev --offline
npx netlify dev --offline
◈ Netlify Dev ◈
◈ No app server detected. Using simple static server
◈ Running static server from "www-public-new/public"
◈ Static server listening to 3999
⠋ Setting up the Edge Functions environment. This may take a couple of minutes.
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
⠋ Setting up the Edge Functions environment. This may take a couple of minutes.FetchError: request to https://dl.deno.land/release/v1.20.3/deno-x86_64-unknown-linux-gnu.zip failed, reason: getaddrinfo EAI_AGAIN dl.deno.land
and then the CLI throws.
Configuration
No response
Environment
System: OS: Linux 5.10 Ubuntu 20.04 LTS (Focal Fossa) CPU: (12) x64 AMD Ryzen 5 PRO 5650U with Radeon Graphics Memory: 3.26 GB / 5.65 GB Container: Yes Shell: 5.0.16 - /bin/bash Binaries: Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm