Name | Type | Description |
---|---|---|
customRoutes | Array.<PagesRoute> | The custom routes. |
customUrls | PagesCustomUrlsOptions | The URLs to the custom pages. |
enableLocalization | Boolean | Is true if pages should be localized; this has no effect on custom page redirects. |
enableRouter | Boolean | Is true if the pages router should be enabled; this is required for any of the pages options to take effect. Caution, this is an experimental feature that may not be appropriate for production. |
forceRedirect | Boolean | 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). |
localizationFallbackLocale | String | 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. |
localizationJsonPath | String | The path to the JSON file for localization; the translations will be used to fill template placeholders according to the locale. |
pagesEndpoint | String | The API endpoint for the pages. Default is 'apps'. |
pagesPath | String | The path to the pages directory; this also defines where the static endpoint '/apps' points to. Default is the './public/' directory. |
placeholders | Object | The placeholder keys and values which will be filled in pages; this can be a simple object or a callback function. |
PagesOptions
Properties