chore: setup open telemetry

This commit is contained in:
Bart Stefanski 2023-04-21 12:11:00 +02:00
parent f0f305d97a
commit 474a3dc1fb
5 changed files with 521 additions and 6 deletions

View file

@ -1,6 +1,13 @@
const withPlugins = require("next-compose-plugins")
/* eslint-disable @typescript-eslint/no-var-requires */
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
})
const withPlugins = require("next-compose-plugins")
module.exports = withPlugins([[withBundleAnalyzer]], { reactStrictMode: true, transpilePackages: ["ui"] })
/**
* @type {import('next').NextConfig}
*/
module.exports = withPlugins([[withBundleAnalyzer]], {
reactStrictMode: true,
experimental: { instrumentationHook: true },
})