Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/finalize-sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ let sitemap: string
try {
sitemap = await fs.readFile(sitemapPath, 'utf-8')
} catch (error) {
if (process.env.VITE_E2E === 'true' && (error as NodeJS.ErrnoException).code === 'ENOENT') {
const isMissingSitemap = (error as NodeJS.ErrnoException).code === 'ENOENT'
const canSkipMissingSitemap =
process.env.VITE_E2E === 'true' || process.env.VERCEL_ENV !== 'production'

if (isMissingSitemap && canSkipMissingSitemap) {
process.exit(0)
}
throw error
Expand Down
11 changes: 8 additions & 3 deletions src/marketing/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Footer from '../../_components/Footer'
import Header from '../../_components/Header'
import Reveal from '../../_components/Reveal'
import { developersPath } from '../../_lib/developersPaths'
import MicroHeader from '../_components/MicroHeader'
import { categoryBySlug, formatDate, isNew } from '../_lib/categories'
import { getPost } from '../_lib/posts'

Expand Down Expand Up @@ -35,8 +36,9 @@ export default function BlogPostPage({ params }: { params: { slug: string } }) {
<main className="min-h-screen w-full bg-surface-page">
<div className="mx-auto w-full max-w-7xl border-line border-x bg-surface-shell">
<Header />
<MicroHeader title={post.title} />

<article className="mx-auto w-full max-w-[760px] px-5 pt-14 lg:pt-20">
<article className="mx-auto w-full max-w-[760px] px-5 pt-14 lg:pt-20" data-blog-article>
<Reveal>
<Link
href={developersPath('/blog')}
Expand Down Expand Up @@ -64,7 +66,10 @@ export default function BlogPostPage({ params }: { params: { slug: string } }) {
)}
</div>

<h1 className="mt-5 font-sans text-[clamp(2rem,5vw,3rem)] text-foreground leading-[1.1] tracking-[-0.02em] antialiased">
<h1
className="mt-5 font-sans text-[clamp(2rem,5vw,3rem)] text-foreground leading-[1.1] tracking-[-0.02em] antialiased"
data-blog-title
>
{post.title}
</h1>

Expand All @@ -77,7 +82,7 @@ export default function BlogPostPage({ params }: { params: { slug: string } }) {
HTML at build time, so raw HTML injection here is trusted. */}
<Reveal delay={100} className="blog-prose mt-12 border-line border-t pt-10">
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: trusted build-time markdown */}
<div dangerouslySetInnerHTML={{ __html: post.html }} />
<div data-blog-content dangerouslySetInnerHTML={{ __html: post.html }} />
</Reveal>
</article>

Expand Down
Loading
Loading