Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Feb 20, 2024
1 parent 43adf79 commit 1a4fb09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions app/changelog/header.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import getConfig from 'next/config';

const {publicRuntimeConfig} = getConfig();

export default function Header({loading}) {
return (
<div className="w-full mx-auto h-96 relative bg-darkPurple">
<div className="relative w-full lg:max-w-7xl mx-auto px-4 lg:px-8 pt-8 grid grid-cols-12 items-center">
<img
className={`justify-self-center col-span-10 z-20 hidden lg:block ${loading ? 'animate-fade-in-left' : ''}`}
src={`${publicRuntimeConfig.assetPrefix ?? ''}/changelog/assets/hero.png`}
src="https://docs.sentry.io/changelog/assets/hero.png"
alt="Sentry Changelog"
height={273}
width={450}
Expand Down
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const nextConfig = {
},
];
},
publicRuntimeConfig: {
assetPrefix: isProd ? 'https://docs.sentry.io' : undefined,
},
assetPrefix: isProd ? 'https://docs.sentry.io' : undefined,

pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
Expand Down

0 comments on commit 1a4fb09

Please sign in to comment.