作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想将 Azure 应用程序洞察与 next js 一起使用,但无法做到这一点,有人可以帮助我吗?
最佳答案
您可以通过使用默认的 React 插件将 azure app Insight 与 nextjs 结合使用,并且必须为 nextjs 创建自己的历史对象,在页面加载后,您可以使该历史对象 = window.history 对象。之后,您可以借助该历史对象启动应用程序洞察。这将解决您的问题。我写了一篇关于相同内容的文章,您可以查看此链接以供引用。 https://medium.com/@nirbhayluthra/integrating-azure-application-insights-with-next-js-the-easy-way-afc83596afad
关于azure - 如何将 Azure 应用程序见解与 nextjs 应用程序结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72117172/
我是一名优秀的程序员,十分优秀!