static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

kb mistaken for bytes in warning

Open racinmat opened this issue 4 months ago • 0 comments

Before filing this issue, please ensure you're using the latest CLI by running swa --version and comparing to the latest version on npm. Yes, I am.

Are you accessing the CLI from the default port :4280 ?

  • [ ] No, I am using a different port number (--port) and accessing the CLI from that port
  • [x] Yes, I am accessing the CLI from port :4280

Make sure you are accessing the URL printed in the console when running swa start!

ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly

Describe the bug My staticwebapp.config.json is too large but the warning is WARNING: staticwebapp.config.json is 22 bytes. The maximum size is 20 bytes.. It should be kilobytes, not bytes. https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#restrictions states 20 kb too.

To Reproduce

  1. Make staticwebapp.config.json large 22kb.
  2. Type in command 'swa deploy --env productio'
  3. See very confusing warning

Expected behavior Expect kilobytes in the warning.

Screenshots If applicable, add screenshots to help explain your problem.

Image

Desktop (please complete the following information):

  • OS: windows
  • Version 11

Additional context Add any other context about the problem here.

racinmat avatar Aug 24 '25 20:08 racinmat