From 5a1baabfdb6d50ba488814e161b4ea1723464987 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Mon, 15 Apr 2024 17:56:21 +0900 Subject: [PATCH] =?UTF-8?q?example=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/nextjs-usage/package.json | 8 +- examples/nextjs-usage/src/app/page.tsx | 9 +- examples/nextjs-usage/yarn.lock | 148 ++++++++++++------------- examples/nodejs-usage/package.json | 6 +- examples/nodejs-usage/src/main.ts | 5 +- examples/nodejs-usage/yarn.lock | 24 ++-- 6 files changed, 104 insertions(+), 96 deletions(-) diff --git a/examples/nextjs-usage/package.json b/examples/nextjs-usage/package.json index 51f1ace7..e860710c 100644 --- a/examples/nextjs-usage/package.json +++ b/examples/nextjs-usage/package.json @@ -11,14 +11,14 @@ "gen": "npx @kubekit/codegen gen-config/storage-config.ts && npx @kubekit/codegen gen-config/core-v1-config.ts" }, "dependencies": { - "@kubekit/client": "^0.0.3", - "next": "^14.2.0-canary.23", + "@kubekit/client": "0.0.19", + "next": "^14.2.1", "react": "^18", "react-dom": "^18" }, "devDependencies": { - "@kubekit/codegen": "0.0.3", - "@kubekit/sync": "^0.0.3", + "@kubekit/codegen": "^0.0.15", + "@kubekit/sync": "0.0.20", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/examples/nextjs-usage/src/app/page.tsx b/examples/nextjs-usage/src/app/page.tsx index 76cd034e..55e2c5aa 100644 --- a/examples/nextjs-usage/src/app/page.tsx +++ b/examples/nextjs-usage/src/app/page.tsx @@ -1,7 +1,14 @@ import { listCoreV1PodForAllNamespaces } from '@/generated/k8s-client/api-v1' export default async function Home() { - const pods = await listCoreV1PodForAllNamespaces({}) + const pods = await listCoreV1PodForAllNamespaces( + {}, + { + next: { + revalidate: false, + }, + } + ) return (