@smock/gatsby-plugin-sproxy

interceotor plugin of gatsby

Usage no npm install needed!

<script type="module">
  import smockGatsbyPluginSproxy from 'https://cdn.skypack.dev/@smock/gatsby-plugin-sproxy';
</script>

README

gatsby sproxy工具插件

gatsby-plugin-sproxy

安装方法:

npm i @smock/gatsby-plugin-sproxy
# 或
yarn add @smock/gatsby-plugin-sproxy

指定NO_SPROXY或NO_INTERCEPTOR环境变量可禁用拦截工具 例如:

export NO_SPROXY=true
# 或
export NO_INTERCEPTOR=true

拦截工具参考文档: https://www.npmjs.com/package/@smock/interceptor