question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add swa.json config file

See original GitHub issue

Describe the solution you’d like As a user, I’d like to be able to start swa using a config file. All the CLI flags should be supported.

{
  "options": {
   // CLI flags
  }
}

File name options:

  • swa.json
  • swa.config.json
  • .swarc
  • swa property in package.json

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
alexweiningercommented, Sep 3, 2021

I really like this feature. I’m exploring adding local debugging for SWAs into the VS Code extension and this would make the configuration much easier on users.

I think users would be much more comfortable editing a swa-cli.config.json versus launch/tasks.json files.

4reactions
itproprocommented, Mar 10, 2021
  • swa property in package.json could lead to problems with monorepos
  • swa.json not really clear that it’s a config file
  • swa.config.json, .swarc both fine for me

I would prefer .swarc, as I think the most important thing about the naming would be to avoid confusion with the staticwebapp.config.json file for the user.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6. Use Runtime Config File | Static Web Apps CLI
6.2 Specify File Location​. To control where the CLI searches for staticwebapp.config.json , use --swa-config-location .
Read more >
#04: Configuring SWA | Azure Static Web Apps
Application: Use the staticwebapp.config.json file (located in the folder specified for app_location ) to define rules and properties that ...
Read more >
Configure Azure Static Web Apps - Microsoft Learn
Configuration for Azure Static Web Apps is defined in the staticwebapp.config.json file, which controls the following settings:.
Read more >
Static Web App CLI | SpringerLink
We've used the Azure Static Web App CLI (SWA CLI) in an earlier chapter to get started ... property of the “staticwebapp.config.json” file....
Read more >
Getting Started with Azure Static Web Apps (SWA) - Jade Global
All authentication providers are enabled by default. We can add rules to the routing configuration file to restrict an authentication provider.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found