Skip to content

Commit 45ac307

Browse files
committed
chore(config): disable explicit static export and enable image optimization
1 parent 393ce83 commit 45ac307

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5-
output: 'export',
5+
// output: 'export',
66
};
77

88
export default nextConfig;

src/app/robots.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { MetadataRoute } from "next";
22

3+
// when using SSG (output: 'export'), this is required
4+
// https://github.com/vercel/next.js/issues/68667
35
export const dynamic = "force-static";
46

57
export default function robots(): MetadataRoute.Robots {

src/app/sitemap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { MetadataRoute } from "next";
22
import { siteConfig } from "@/lib/config";
33
import { isInternalHref, flattenByChildren } from "@/lib/utils";
44

5+
// when using SSG (output: 'export'), this is required
6+
// https://github.com/vercel/next.js/issues/68667
57
export const dynamic = "force-static";
68

79
export default function sitemap(): MetadataRoute.Sitemap {

src/components/primitives/partner-card.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export function PartnerCard({ partner, className }: PartnerCardProps) {
2424
alt={`${partner.name} logo`}
2525
fill
2626
className="object-contain"
27-
unoptimized
2827
/>
2928
</div>
3029
)}

src/components/sections/featured-program.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export function FeaturedProgram({
5151
fill
5252
className="object-contain"
5353
sizes="(min-width: 768px) 50vw, 100vw"
54-
unoptimized
5554
/>
5655
)}
5756
</div>

0 commit comments

Comments
 (0)