Skip to content

Commit

Permalink
Fix menu endpoint proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtlBbx committed Dec 14, 2023
1 parent 03ea4cd commit f0352c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default defineNuxtModule<ModuleOptions>({
},
defaults: {
baseURL: 'https://8080-shaal-drupalpod-xxxxxxxxxxx.ws-xxxx.gitpod.io/ce-api',
drupalBaseUrl: 'https://8080-shaal-drupalpod-xxxxxxxxxxx.ws-xxxx.gitpod.io',
ceApiEndpoint: '/ce-api',
menuEndpoint: 'api/menu_items/$$$NAME$$$',
customErrorPages: false,
Expand All @@ -47,9 +46,7 @@ export default defineNuxtModule<ModuleOptions>({
if (!options.drupalBaseUrl) {
options.drupalBaseUrl = baseURL.origin
}
if (!options.ceApiEndpoint) {
options.ceApiEndpoint = baseURL.pathname
}
options.ceApiEndpoint = baseURL.pathname
} else if (!options.baseURL) {
options.baseURL = options.drupalBaseUrl + options.ceApiEndpoint
}
Expand Down

0 comments on commit f0352c4

Please sign in to comment.