Skip to content

Commit

Permalink
fix(vssue): custom proxy doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
kenberkeley committed Jan 14, 2022
1 parent 5053955 commit d90a563
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions patches/@vssue+vuepress-plugin-vssue+1.4.6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/@vssue/vuepress-plugin-vssue/lib/enhanceApp.js b/node_modules/@vssue/vuepress-plugin-vssue/lib/enhanceApp.js
index 933de30..624fbb4 100644
--- a/node_modules/@vssue/vuepress-plugin-vssue/lib/enhanceApp.js
+++ b/node_modules/@vssue/vuepress-plugin-vssue/lib/enhanceApp.js
@@ -8,6 +8,7 @@ export default ({ Vue }) => {
const vpOptions = JSON.parse(VSSUE_OPTIONS);
Vue.use(Vssue, Object.assign({}, vpOptions, {
api: VssueAPI,
+ proxy: url => `https://cors-anywhere.azm.workers.dev/${url}`, // TODO: FIX_ME: https://github.com/meteorlxy/vuepress-theme-meteorlxy/issues/114
}));
// get the vssue component registered by Vssue.Plugin
const VssueComponent = Vue.component('Vssue');

0 comments on commit d90a563

Please sign in to comment.