Closed vloss3 closed 1 month ago
drupalBaseUrl: '', // -> needed at client
ceApiEndpoint: '/ce-api', // -> needed at client
menuEndpoint: 'api/menu_items/$$$NAME$$$', // -> needed at client
customErrorPages: false, // -> needed at client
fetchOptions: { // -> needed at client
fetchProxyHeaders: ['cookie'], // -> not needed
useLocalizedMenuEndpoint: true, // -> needed at client
addRequestFormat: false, // -> needed at client
exposeAPIRouteRules: true, // -> not needed
passThroughHeaders: // -> not needed
exposeAPIRouteRules: true, // -> not needed
passThroughHeaders: // -> not needed
seem to be still passed to the client
Motivation / Goals
Module options(incl. defaults set by the module) appear in the Nuxt window object as part of the runtimeConfig, which increases the size of the bundle.
Requirements
Reduce the module options being sent to only what's necessary.