fix: make connectionString optional
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
import { env } from "./env/server"
|
||||
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
if (
|
||||
process.env.NEXT_RUNTIME === "nodejs" &&
|
||||
env.APPLICATION_INSIGHTS_CONNECTION_STRING
|
||||
) {
|
||||
const { AzureMonitorTraceExporter } = await import(
|
||||
"@azure/monitor-opentelemetry-exporter"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user