diff --git a/lib/templates/plugin.js b/lib/templates/plugin.js index f25a8fd7..04594d9d 100644 --- a/lib/templates/plugin.js +++ b/lib/templates/plugin.js @@ -54,6 +54,11 @@ export default (ctx, inject) => { if (!<%= key %>ClientConfig.getAuth) { <%= key %>ClientConfig.getAuth = <%= key %>GetAuth } + + if (process.client && <%= key %>ClientConfig.browserHttpEndpoint) { + <%= key %>ClientConfig.httpEndpoint = <%= key %>ClientConfig.browserHttpEndpoint + } + <%= key %>ClientConfig.ssr = !!process.server <%= key %>ClientConfig.cache = <%= key %>Cache <%= key %>ClientConfig.tokenName = <%= key %>TokenName