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
You may also take a look at the [example project](https://github.com/drunomics/lupus-nuxtjs-drupal-stack-example).
48
42
49
43
## Options
50
44
51
45
-`baseURL`: The Drupal base URL. Defaults to the `DRUPAL_BASE_URL`
52
46
environment variable if provided, otherwise to `http://localhost:8888`.
53
47
48
+
-`menuEndpoint`: The menu endpoint pattern used for fetching menus. Defaults to 'api/menu_items/$$$NAME$$$' as fitting
49
+
to the API provided by the [Rest menu items](https://www.drupal.org/project/rest_menu_items) Drupal module.
50
+
`$$$NAME$$$` is replaced by the menu name being fetched.
51
+
52
+
53
+
## TODO list of options (not yet implemented)
54
+
54
55
-`addRequestFormat`: If set to `true`, the `_format=custom_elements` URL parameter
55
-
is added automatically to requests. Defaults to `true`.
56
-
56
+
is added automatically to requests. Defaults to `true`.
57
+
57
58
-`addRequestContentFormat`: If specified, the given value is added as `_content_format`
58
59
URL parameter to requests. Disabled by default.
59
60
60
-
-`addVueCompiler`: If enabled, the Vue compiler is added to the runtime build. This
61
-
is necessary if you want to render custom elements markup on runtime. Defaults to `true`.
62
-
63
-
-`menuEndpoint`: The menu endpoint pattern used for fetching menus. Defaults to 'api/menu_items/$$$NAME$$$' as fitting
64
-
to the API provided by the [Rest menu items](https://www.drupal.org/project/rest_menu_items) Drupal module.
65
-
`$$$NAME$$$` is replaced by the menu name being fetched. To enable menu fetching, un-comment the nuxtServerInit action
66
-
in `store/init.js`.
67
-
68
61
-`useLocalizedMenuEndpoint`: If enabled, the menu endpoint will use a language prefix as configured by [nuxtjs/i18n](https://i18n.nuxtjs.org) module. Defaults to `true`.
69
62
70
-
-`useProxy`: If set to `dev-only` and nuxt is in dev-mode, the module automatically
71
-
configures `/api` to the Drupal backend via
72
-
[@nuxtjs/proxy](https://github.com/nuxt-community/proxy-module) and uses it instead of
63
+
-`useProxy`: If set to `dev-only` and nuxt is in dev-mode, the module automatically
64
+
configures `/api` to the Drupal backend via
65
+
[@nuxtjs/proxy](https://github.com/nuxt-community/proxy-module) and uses it instead of
73
66
the Drupal backend, such that there are no CORS issues. Other values supported are
74
67
`always` or false.
75
-
Note: When using `always` the module must be added to the nuxt `modules` section instead
76
-
of the `buildModules` section.
77
-
78
-
-`axios`: Options to pass-through to the `drupal-ce`
0 commit comments