Skip to content

Commit 0f60ca3

Browse files
authored
Revert, asset rewriting (#9192)
* Revert "fix: Reverse logic to explicitly just check for IS_PRODUCTION (#9191)" This reverts commit c4208c4. * Revert "Prepare domain switch for Changelog (#9152)" This reverts commit 8bfa518. * Remove Tunnel * Fix font * Add vercel for toolbar
1 parent 20d8bbd commit 0f60ca3

File tree

5 files changed

+15
-19
lines changed

5 files changed

+15
-19
lines changed

app/changelog/globals.css

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@tailwind components;
55
@tailwind utilities;
66

7-
87
#changelogcontent {
98
font-family: var(--font-rubik);
109
}

app/changelog/header.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import Image from 'next/image';
2+
13
export default function Header({loading}) {
24
return (
35
<div className="w-full mx-auto h-96 relative bg-darkPurple">
46
<div className="relative w-full lg:max-w-7xl mx-auto px-4 lg:px-8 pt-8 grid grid-cols-12 items-center">
5-
<img
7+
<Image
68
className={`justify-self-center col-span-10 z-20 hidden lg:block ${loading ? 'animate-fade-in-left' : ''}`}
7-
src="https://docs.sentry.io/changelog/assets/hero.png"
9+
src="/changelog/assets/hero.png"
810
alt="Sentry Changelog"
911
height={273}
1012
width={450}

next.config.js

-10
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ const remarkPrism = require('remark-prism');
33

44
/** @type {import('next').NextConfig} */
55
const nextConfig = {
6-
headers() {
7-
return [
8-
{
9-
source: '/_next/static/([^/]+/pages|chunks|runtime|css|fonts|media)/(.+)',
10-
headers: [{key: 'Access-Control-Allow-Origin', value: '*'}],
11-
},
12-
];
13-
},
14-
assetPrefix: process.env.IS_PRODUCTION ? 'https://docs.sentry.io' : undefined,
15-
166
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
177

188
images: {

src/components/changelog/article.tsx

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {ReactNode} from 'react';
2+
import Image from 'next/image';
23

34
import Date from './date';
45
import Tag from './tag';
@@ -30,11 +31,15 @@ export default function Article({
3031
return (
3132
<article className={`bg-white rounded-lg shadow-lg mb-8 ${className}`}>
3233
{image && (
33-
<img
34-
className="object-cover relative w-full h-64 rounded-lg rounded-b-none"
35-
src={image}
36-
alt={title}
37-
/>
34+
<div className="relative w-full h-64">
35+
<Image
36+
className="object-cover rounded-lg rounded-b-none"
37+
src={image}
38+
fill
39+
alt={title}
40+
sizes="(max-width: 768px) 100vw"
41+
/>
42+
</div>
3843
)}
3944
<div className="p-6">
4045
<h3 className="text-3xl text-primary font-semibold mb-2">{title}</h3>

vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"key": "Content-Security-Policy",
20-
"value": "upgrade-insecure-requests; default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.sentry-cdn.com www.googletagmanager.com plausible.io; connect-src 'self' *.sentry.io sentry.io *.algolia.net *.algolianet.com *.algolia.io plausible.io reload.getsentry.net storage.googleapis.com; img-src * 'self' data: www.google.com www.googletagmanager.com; style-src 'self' 'unsafe-inline'; font-src 'self' fonts.gstatic.com; frame-src demo.arcade.software player.vimeo.com; worker-src blob:; report-uri https://o1.ingest.sentry.io/api/1267915/security/?sentry_key=ad63ba38287245f2803dc220be959636"
20+
"value": "upgrade-insecure-requests; default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.sentry-cdn.com www.googletagmanager.com plausible.io vercel.live; connect-src 'self' *.sentry.io sentry.io *.algolia.net *.algolianet.com *.algolia.io plausible.io reload.getsentry.net storage.googleapis.com; img-src * 'self' data: www.google.com www.googletagmanager.com; style-src 'self' 'unsafe-inline'; font-src 'self' fonts.gstatic.com; frame-src demo.arcade.software player.vimeo.com; worker-src blob:; report-uri https://o1.ingest.sentry.io/api/1267915/security/?sentry_key=ad63ba38287245f2803dc220be959636"
2121
},
2222
{
2323
"key": "NEL",

0 commit comments

Comments
 (0)