Skip to content

Commit

Permalink
fix: update next
Browse files Browse the repository at this point in the history
  • Loading branch information
kjxbyz committed Jun 12, 2024
1 parent a625a49 commit 73091e8
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 78 deletions.
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"lucide-react": "^0.390.0",
"ms": "^2.1.3",
"muse-ui": "^4.0.0-alpha.1",
"next": "14.1.4",
"next": "14.2.4",
"next-contentlayer": "^0.3.4",
"next-intl": "^3.14.1",
"next-themes": "^0.3.0",
Expand Down Expand Up @@ -65,7 +65,7 @@
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-next": "14.1.4",
"eslint-config-next": "14.2.4",
"postcss": "^8.4.38",
"prettier": "^3.3.1",
"prettier-plugin-tailwindcss": "^0.6.2",
Expand Down
4 changes: 2 additions & 2 deletions docs/app/api/releases/latest/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import httpStatus from "http-status";
import github from "@/lib/github";

// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
export const dynamic = "force-dynamic";
// export const fetchCache = "force-no-store";
// export const dynamic = "force-dynamic";
export const fetchCache = "force-no-store";

export async function GET() {
try {
Expand Down
4 changes: 2 additions & 2 deletions docs/app/api/releases/list/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import github from "@/lib/github";
import schema from "@/schema";

// https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
export const dynamic = "force-dynamic";
// export const fetchCache = "force-no-store";
// export const dynamic = "force-dynamic";
export const fetchCache = "force-no-store";

export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lucide-react": "^0.390.0",
"ms": "^2.1.3",
"muse-ui": "^4.0.0-alpha.1",
"next": "14.1.4",
"next": "14.2.4",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.3.0",
"nextjs-toploader": "^1.6.12",
Expand Down Expand Up @@ -65,7 +65,7 @@
"@types/react-dom": "18.3.0",
"autoprefixer": "^10.4.19",
"eslint": "8.57.0",
"eslint-config-next": "14.1.4",
"eslint-config-next": "14.2.4",
"postcss": "^8.4.38",
"prettier": "^3.3.1",
"prettier-plugin-tailwindcss": "^0.6.2",
Expand Down
2 changes: 2 additions & 0 deletions docs/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export async function latestRelease() {
headers,
// https://nextjs.org/docs/app/building-your-application/caching
cache: "no-store",
next: { revalidate: 0 },
});

if (!resp.ok) {
Expand All @@ -32,6 +33,7 @@ export async function getReleases(
headers,
// https://nextjs.org/docs/app/building-your-application/caching
cache: "no-store",
next: { revalidate: 0 },
},
);

Expand Down
Loading

0 comments on commit 73091e8

Please sign in to comment.