Update README.md
This commit is contained in:
parent
63be4d3608
commit
d2e8d41391
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ main() async {
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
`serveStatic` accepts two named parameters.
|
`serveStatic` accepts two named parameters.
|
||||||
- **sourceDirectory**: A `Directory` containing the files to be served. If left null, then Angel will serve either from `build` or
|
- **sourceDirectory**: A `Directory` containing the files to be served. If left null, then Angel will serve either from `web` (in development) or
|
||||||
`build/web`, depending on your `ANGEL_ENV`.
|
`build/web` (in production), depending on your `ANGEL_ENV`.
|
||||||
- **indexFileNames**: A `List<String` of filenames that should be served as index pages. Default is `['index.html']`.
|
- **indexFileNames**: A `List<String` of filenames that should be served as index pages. Default is `['index.html']`.
|
||||||
- **virtualRoot**: To serve index files, you need to specify the virtual path under which
|
- **virtualRoot**: To serve index files, you need to specify the virtual path under which
|
||||||
angel_static is serving your files. If you are not serving static files at the site root,
|
angel_static is serving your files. If you are not serving static files at the site root,
|
||||||
|
|
Loading…
Reference in a new issue