You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`pages`| yes |`Object`|`undefined`|-|`PARSE_SERVER_PAGES`| The options for pages such as password reset and email verification. |
428
-
|`pages.enableRouter`| yes |`Boolean`|`false`|-|`PARSE_SERVER_PAGES_ENABLE_ROUTER`| Is `true`if the pages router should be enabled; this is required for any of the pages options to take effect. |
429
427
|`pages.customRoutes`| yes |`Array`|`[]`|-|`PARSE_SERVER_PAGES_CUSTOM_ROUTES`| The custom routes. The routes are added in the order they are defined here, which has to be considered since requests traverse routes in an ordered manner. Custom routes are traversed after build-in routes such as password reset and email verification. |
430
428
|`pages.customRoutes.method`||`String`|-|`GET`, `POST`|-| The HTTP method of the custom route. |
431
429
|`pages.customRoutes.path`||`String`|-|`custom_page`|-| The path of the custom route. Note that the same path can used if the `method` is different, for example a path `custom_page` can have two routes, a `GET` and `POST` route, which will be invoked depending on the HTTP request method. |
| `pages` | yes | `Object` | `undefined` | - | `PARSE_SERVER_PAGES` | The options for pages such as password reset and email verification. |
763
-
| `pages.enableRouter` | yes | `Boolean` | `false` | - | `PARSE_SERVER_PAGES_ENABLE_ROUTER` | Is `true` if the pages router should be enabled; this is required for any of the pages options to take effect. |
764
756
| `pages.enableLocalization` | yes | `Boolean` | `false` | - | `PARSE_SERVER_PAGES_ENABLE_LOCALIZATION` | Is true if pages should be localized; this has no effect on custom page redirects. |
765
757
| `pages.localizationJsonPath` | yes | `String` | `undefined` | `./private/translations.json` | `PARSE_SERVER_PAGES_LOCALIZATION_JSON_PATH` | The path to the JSON file for localization; the translations will be used to fill template placeholders according to the locale. |
766
758
| `pages.localizationFallbackLocale` | yes | `String` | `en` | `en`, `en-GB`, `default` | `PARSE_SERVER_PAGES_LOCALIZATION_FALLBACK_LOCALE` | The fallback locale for localization if no matching translation is provided for the given locale. This is only relevant when providing translation resources via JSON file. |
help: 'Is true if the pages router should be enabled; this is required for any of the pages options to take effect.',
694
-
action: parsers.booleanParser,
695
-
default: false,
696
-
},
697
691
forceRedirect: {
698
692
env: 'PARSE_SERVER_PAGES_FORCE_REDIRECT',
699
693
help: 'Is true if responses should always be redirects and never content, false if the response type should depend on the request type (GET request -> content response; POST request -> redirect response).',
0 commit comments