提交 09508ed4 编写于 作者: J Jess Telford 提交者: Tim Neutkens

[with-sentry] Use env config instead of webpack where possible (#6381)

上级 6e23b75c
......@@ -2,10 +2,12 @@ const webpack = require('webpack')
const nextSourceMaps = require('@zeit/next-source-maps')()
module.exports = nextSourceMaps({
env: {
SENTRY_DSN: process.env.SENTRY_DSN
},
webpack: (config, { isServer, buildId }) => {
config.plugins.push(
new webpack.DefinePlugin({
'process.env.SENTRY_DSN': JSON.stringify(process.env.SENTRY_DSN),
'process.env.SENTRY_RELEASE': JSON.stringify(buildId)
})
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册