简体   繁体   English

react-snap 从构建中删除 api 密钥

[英]react-snap removing api key from build

I am using react-snap to pre-render my site and in my index.html file I have the code below我正在使用 react-snap 预渲染我的网站,在我的index.html文件中我有以下代码

<div id="snipcart" data-api-key="key"></div>

however it outputs the code as below但是它输出的代码如下

<div id="snipcart" class="snipcart"><!----><!----></div>

How can I change it so it outputs correctly?如何更改它以使其正确输出?

That's Snipcart itself which is replacing the div.那是 Snipcart 本身正在替换 div。

If you have an issue with your cart integration, it is most certainly something else.如果您的购物车集成有问题,那肯定是其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM