Skip to content

Add flag to accept location of config or routes.json #125

@anthonychu

Description

@anthonychu

When using a dev server (swa start http://localhost:3000) or when serving static files from a folder that doesn't contain staticwebapp.config.json (swa start ./dist), allow the location of the config/routes file to be specified from the CLI.

Should be able to specific the path to the file, or the folder containing the file (if both staticwebapp.config.json and routes.json exist, use staticwebapp.config.json).

We should also ensure the current behavior of how the files are found are properly documented.

Metadata

Metadata

Assignees

Labels

scope: cliIssues happened a the ./src/cli leveltype: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions