Questions: swa start #383
Replies: 5 comments
-
Great questions! Let's talk about this during our next call and then I'll write down the answers in the wiki. |
Beta Was this translation helpful? Give feedback.
-
In both cases, we reconfigure
translates to this:
When not provided,
My understanding of how commander works, is that
The scans scans for
These values are overridden by user's config (CLI flags).
We check for runtime type. We currently support Node.js and .NET (experimental):
Important: We don't build if
We scan recursively the
|
Beta Was this translation helpful? Give feedback.
-
Hi @anthonychu , i was trying to implement Static Web apps and add API to it as described in this document - https://docs.microsoft.com/en-us/azure/static-web-apps/add-api?tabs=vanilla-javascript but seems i am having problem running this command on my bash terminal. "swa start src --api-location api" |
Beta Was this translation helpful? Give feedback.
-
Hi @Divyesh85 , Sorry that you faced this issue. Could you please confirm if you followed the Installation steps mentioned above? One usually comes across this error when the SWA CLI is not installed, hence the bash is not able to recognise the command Also, it would be great if you could help us repro the error by sharing your project in a public repository if possible. |
Beta Was this translation helpful? Give feedback.
-
@Reshmi-Sriram sorry for late reply due to holidays, i was able to resolve the issue, seems by default when i was trying to install azure functions and azure static webapps cli on VS code terminal it was not installing using the administrator mode hence was not able to install properly. I tried it in separate command prompt as an admin and it went well. Thanks for the prompt reply though. |
Beta Was this translation helpful? Give feedback.
-
Have a few questions about parts of the
start
command that are unclear...static
and I want to serve it, it seems like the only way to make this work is to set the context:swa start ./static
.swa start --app-location ./static
(or using--app
) doesn't seem to work.--build
work?Beta Was this translation helpful? Give feedback.
All reactions