diff --git a/app/changelog/globals.css b/app/changelog/globals.css index 5a21f3c3fc908..cc1d4b8d9e167 100644 --- a/app/changelog/globals.css +++ b/app/changelog/globals.css @@ -4,6 +4,10 @@ @tailwind components; @tailwind utilities; + +#changelogcontent { + font-family: var(--font-rubik); +} .radix-themes { --cursor-button: pointer; } diff --git a/app/changelog/header.tsx b/app/changelog/header.tsx index 6a32238f284eb..8c3355bbdb092 100644 --- a/app/changelog/header.tsx +++ b/app/changelog/header.tsx @@ -1,12 +1,10 @@ -import Image from 'next/image'; - export default function Header({loading}) { return (
- -
+
{children}
diff --git a/next.config.js b/next.config.js index b634578a39d33..d3ceda722b220 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,20 @@ const createMDX = require('@next/mdx'); const remarkPrism = require('remark-prism'); +const isProd = process.env.NODE_ENV === 'production' && !process.env.IS_PREVIEW; + /** @type {import('next').NextConfig} */ const nextConfig = { + headers() { + return [ + { + source: '/_next/static/([^/]+/pages|chunks|runtime|css|fonts|media)/(.+)', + headers: [{key: 'Access-Control-Allow-Origin', value: '*'}], + }, + ]; + }, + assetPrefix: isProd ? 'https://docs.sentry.io' : undefined, + pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'], images: { @@ -3145,7 +3157,7 @@ module.exports = withSentryConfig( // Suppresses source map uploading logs during build silent: true, org: 'sentry', - project: 'sentry-docs-nextjs', + project: 'docs', }, { // For all available options, see: @@ -3157,9 +3169,6 @@ module.exports = withSentryConfig( // Transpiles SDK to be compatible with IE11 (increases bundle size) transpileClientSDK: true, - // Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load) - tunnelRoute: '/monitoring', - // Hides source maps from generated client bundles hideSourceMaps: true, diff --git a/src/components/changelog/article.tsx b/src/components/changelog/article.tsx index f1918989a651f..d7e023cc267a3 100644 --- a/src/components/changelog/article.tsx +++ b/src/components/changelog/article.tsx @@ -1,5 +1,4 @@ import {ReactNode} from 'react'; -import Image from 'next/image'; import Date from './date'; import Tag from './tag'; @@ -31,15 +30,11 @@ export default function Article({ return (
{image && ( -
- {title} -
+ {title} )}

{title}