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 ?
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
- Make
staticwebapp.config.json large 22kb.
- Type in command 'swa deploy --env productio'
- See very confusing warning
Expected behavior
Expect kilobytes in the warning.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Before filing this issue, please ensure you're using the latest CLI by running
swa --versionand comparing to the latest version on npm.Yes, I am.
Are you accessing the CLI from the default port
:4280?--port) and accessing the CLI from that port:4280ℹ️ NOTE: Make sure to enable debug logs when running any
swacommands using--verbose=sillyDescribe the bug
My
staticwebapp.config.jsonis too large but the warning isWARNING: 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
staticwebapp.config.jsonlarge 22kb.Expected behavior
Expect kilobytes in the warning.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.