Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kieusonlam committed Oct 29, 2019
2 parents 20e603b + 28554ab commit f0c1fcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/templates/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0c1fcd

Please sign in to comment.