Skip to content

kb mistaken for bytes in warning #973

@racinmat

Description

@racinmat

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
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions