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
{{ message }}
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/Configuration.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,23 +71,27 @@ module.exports = {
71
71
72
72
# API Options
73
73
74
-
For custom environments, you must configure the `baseURL`, so that the content's `serverMiddleware` API and `axios` requests helpers can be setup appropriately.
74
+
For custom environments, you must configure the `browserBaseURL`, so that the content's `serverMiddleware` API and `axios` requests helpers can be setup appropriately.
75
75
76
-
-`baseURL`, String that specifies that the site's base url.
76
+
-`browserBaseURL`, String that specifies the site's base url when content is requested from the browser.
77
77
78
-
*Note: You can use environment variables to dynamically set the base url.*
78
+
*Note: You can specify the `api` option as a function receiving an `isStatic` parameter to dynamically set the api options depending on the fact you're making a static build ('nuxt generate') or not.*
API options are also passed down to `axios` if you need a specific configuration (see [axios options](https://github.com/nuxt-community/axios-module#options)).
92
+
93
+
*Note: Remember not to alter the `baseUrl` parameter in a way that would prevent nuxtent to access the content server (i.e. by specifying a remote url).*
94
+
91
95
# Parser Options
92
96
93
97
You can also configure additional processing to be used Nuxtent parsers.
0 commit comments