diff --git a/packages/ui/docs-bundle/next.config.js b/packages/ui/docs-bundle/next.config.js index 789d1cbc6e..56ef040bb0 100644 --- a/packages/ui/docs-bundle/next.config.js +++ b/packages/ui/docs-bundle/next.config.js @@ -1,4 +1,5 @@ -const assetPrefix = process.env.CDN_URI != null ? new URL("/", process.env.CDN_URI).href : undefined; +const assetPrefix = + process.env.NEXT_PUBLIC_CDN_URI != null ? new URL("/", process.env.NEXT_PUBLIC_CDN_URI).href : undefined; /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, diff --git a/packages/ui/docs-bundle/sentry.client.config.ts b/packages/ui/docs-bundle/sentry.client.config.ts index fa7c01adbd..73156c5d5d 100644 --- a/packages/ui/docs-bundle/sentry.client.config.ts +++ b/packages/ui/docs-bundle/sentry.client.config.ts @@ -5,7 +5,8 @@ import * as Sentry from "@sentry/nextjs"; const sentryEnv = process?.env.NEXT_PUBLIC_APPLICATION_ENVIRONMENT ?? "dev"; -const assetPrefix = process.env.CDN_URI != null ? new URL("/", process.env.CDN_URI).href : undefined; +const assetPrefix = + process.env.NEXT_PUBLIC_CDN_URI != null ? new URL("/", process.env.NEXT_PUBLIC_CDN_URI).href : undefined; const tunnelPath = "/api/fern-docs/monitoring"; Sentry.init({