From 0939a6297b22c5a950263b925d60b6d2850d3301 Mon Sep 17 00:00:00 2001 From: jorgeucano Date: Thu, 9 Jul 2020 10:30:51 -0300 Subject: [PATCH 1/2] docs(scully): add docs for prod cli option --- docs/scully-cmd-line.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/scully-cmd-line.md b/docs/scully-cmd-line.md index aed2dcfc3..1017f24ff 100644 --- a/docs/scully-cmd-line.md +++ b/docs/scully-cmd-line.md @@ -31,6 +31,7 @@ The Scully CLI has the following available options: - [pluginsError](#pluginserror) - [pjFirst](#pjfirst) - [404](#404) + - [prod](#prod) ## Serve @@ -197,3 +198,11 @@ npx scully --040="none" How routes that are not provided in the application are handled. If the Scully server gets a request for a route(file) that does not exists on the file-system, this option amends ow that is handled. The default option is to render a 404 page, and raise a warning during rendering. the `index` and `404` will render the `index.html` or the `404.html` from the dist root folder. The `none` option will leave it up to the express software layer. And lastly, `baseOnly` will use the unhandled routes only + +## prod + +```bash +npx scully --prod +``` + +With the prod flag you can use a different config for your scully config and plugins. [example](https://github.com/scullyio/scully/blob/main/scully.scully-docs.config.ts#L15) From d8bff693ed7900c5be18d9c99783ea4556ebf50b Mon Sep 17 00:00:00 2001 From: sanderelias Date: Thu, 9 Jul 2020 15:46:19 +0200 Subject: [PATCH 2/2] fix(monorepo): update snapshots --- tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap b/tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap index 50c388471..ba37e4423 100644 --- a/tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap +++ b/tests/jest/src/__tests__/__snapshots__/docsThere.spec.ts.snap @@ -2204,6 +2204,7 @@ exports[`docsSite should have content for all markdown files check html for mark
  • pluginsError
  • pjFirst
  • 404
  • +
  • prod
  • @@ -2280,6 +2281,9 @@ npx scully --040=\\"404\\" npx scully --040=\\"none\\"

    How routes that are not provided in the application are handled. If the Scully server gets a request for a route(file) that does not exists on the file-system, this option amends ow that is handled. The default option is to render a 404 page, and raise a warning during rendering. the index and 404 will render the index.html or the 404.html from the dist root folder. The none option will leave it up to the express software layer. And lastly, baseOnly will use the unhandled routes only

    +

    prod

    +
    npx scully --prod
    +

    With the prod flag you can use a different config for your scully config and plugins. example