Skip to content

Commit

Permalink
fix: update CDN_URI to NEXT_PUBLIC_CDN_URI (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored May 24, 2024
1 parent 4228b46 commit 1f7842f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ui/docs-bundle/next.config.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/docs-bundle/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1f7842f

Please sign in to comment.