Skip to content

Commit 31d9bfc

Browse files
committed
perf: force most of pages to be static
1 parent 780d52d commit 31d9bfc

File tree

13 files changed

+21
-171
lines changed

13 files changed

+21
-171
lines changed

app/blog/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
import { getArticles } from "@/lib/blog-api";
1717
import { getMetadata } from "@/lib/metadata";
1818

19+
export const dynamic = "force-static";
20+
1921
export const metadata: Metadata = getMetadata({
2022
title: "Updates from the Argos team",
2123
description: "All the latest Argos news, straight from the team.",

app/changelog/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { getMetadata } from "@/lib/metadata";
55

66
import { Changelogs } from "./changelogs";
77

8+
export const dynamic = "force-static";
9+
810
export const metadata: Metadata = getMetadata({
911
title: "Changelog",
1012
description: "New updates and improvements to Argos.",

app/not-found.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import Link from "next/link";
22

33
import { Button } from "@/components/Button";
44

5+
export const dynamic = "force-static";
6+
57
export default function NotFound() {
68
return (
79
<>

app/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import { Users } from "./home/users/Users";
1616
import { VisualTesting } from "./home/visual-testing/VisualTesting";
1717
import { Why } from "./home/why/Why";
1818

19+
export const dynamic = "force-static";
20+
1921
export const metadata: Metadata = getMetadata({
2022
absoluteTitle: "Argos — Visual Testing for developers",
2123
description:

app/playwright/page.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { GetServerSideProps, Metadata } from "next";
1+
import { Metadata } from "next";
22

33
import { getMetadata } from "@/lib/metadata";
4-
import { highlight } from "@/lib/shiki";
54

65
import { Faq } from "./faq/Faq";
76
import { GetStarted } from "./get-started/GetStarted";
@@ -10,6 +9,8 @@ import { TestDebugging } from "./test-debugging/TestDebugging";
109
import { Video } from "./video/Video";
1110
import { VisualTesting } from "./visual-testing/VisualTesting";
1211

12+
export const dynamic = "force-static";
13+
1314
export const metadata: Metadata = getMetadata({
1415
absoluteTitle: "Supercharge your Playwright Tests with Argos",
1516
description:

app/playwright/test-debugging/TestDebugging.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BugPlayIcon, ChevronRightIcon, ImageOffIcon } from "lucide-react";
1+
import { BugPlayIcon, ImageOffIcon } from "lucide-react";
22
import Image from "next/image";
33

44
import { Link } from "@/components/Link";

app/playwright/visual-testing/VisualTesting.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import {
2-
BugPlayIcon,
3-
CircleDotIcon,
4-
ImageOffIcon,
5-
ScanSearchIcon,
6-
SparkleIcon,
7-
Wand2Icon,
8-
} from "lucide-react";
1+
import { CircleDotIcon, ScanSearchIcon, Wand2Icon } from "lucide-react";
92
import Image from "next/image";
103

114
import { Feature, FeatureDetail, MoreLink } from "../common/Feature";

app/pricing/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import { getMetadata } from "@/lib/metadata";
2222

2323
import { Simulator } from "./Simulator";
2424

25+
export const dynamic = "force-static";
26+
2527
const HOBBY_PLAN_SCREENSHOT_COUNT = 5000;
2628
const PRO_PLAN_SCREENSHOT_COUNT = 15000;
2729
const ADDITIONAL_SCREENSHOT_PRICE = 0.0025;

app/privacy/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { getMetadata } from "@/lib/metadata";
55

66
import PrivacyMd from "./privacy.mdx";
77

8+
export const dynamic = "force-static";
9+
810
export const metadata: Metadata = getMetadata({
911
title: "Privacy policy",
1012
description:

app/security/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export const metadata: Metadata = getMetadata({
1212
pathname: "/security",
1313
});
1414

15+
export const dynamic = "force-static";
16+
1517
export default function Page() {
1618
return (
1719
<StaticPage>

app/terms/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { getMetadata } from "@/lib/metadata";
55

66
import TermsMd from "./terms.mdx";
77

8+
export const dynamic = "force-static";
9+
810
export const metadata: Metadata = getMetadata({
911
title: "Terms of service",
1012
description:

markdown/security.md

-9
This file was deleted.

markdown/terms.md

-151
This file was deleted.

0 commit comments

Comments
 (0)