Static Shock allows users to serve and update the content dynamically during development using the shock serve CLI command. However, it only works when there is an internet connection. This makes it inconvenient to continue development on a flight or other occasions when internet connectivity is unavailable.
Reproduction steps:
Generate a new Static Shock project.
Disconnect from the internet.
Run shock serve.
Expected result:
The server runs locally and serves the site content at http://localhost:4000/.
Actual result:
An unhandled ClientException is thrown.
The following is the full error message and stack trace:
It is unclear at this point if the issue is related to SS itself or Dart. If something about running the Dart server requires contacting pub.dev, then the expected result would be to gracefully handle the exception and inform the user that shock serve only works with an internet connection.
shock build does not throw an exception when there is no internet connection.
Static Shock allows users to serve and update the content dynamically during development using the
shock serve
CLI command. However, it only works when there is an internet connection. This makes it inconvenient to continue development on a flight or other occasions when internet connectivity is unavailable.Reproduction steps:
shock serve
.Expected result:
The server runs locally and serves the site content at
http://localhost:4000/
.Actual result:
An unhandled
ClientException
is thrown.The following is the full error message and stack trace:
Resolving ambiguities
It is unclear at this point if the issue is related to SS itself or Dart. If something about running the Dart server requires contacting
pub.dev
, then the expected result would be to gracefully handle the exception and inform the user thatshock serve
only works with an internet connection.shock build
does not throw an exception when there is no internet connection.