diff --git a/next.config.ts b/next.config.ts index cc47677..3883313 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,7 +3,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { /* config options here */ output: "export", - basePath: "/k8s", + basePath: "/k8s-simulator", distDir: "build", }; diff --git a/src/app/cka/page.tsx b/src/app/cka/page.tsx index 140dfe7..69a04b0 100644 --- a/src/app/cka/page.tsx +++ b/src/app/cka/page.tsx @@ -7,10 +7,10 @@ export default function CKA() { const questions = cka.questions["1.31"] as Record; const seqs = Object.keys(questions); const contents = useMemo(() => { - return seqs.map((seq) => { + return seqs.map((seq, i) => { const question = questions[seq]; return ( -
+

{`Question ${seq}`}

{question} @@ -51,6 +51,7 @@ export default function CKA() {

    {seqs.map((seq, index) => (
  • setCurrent(contents[index])} >{`Question ${seq}`}
  • diff --git a/src/app/cks/page.tsx b/src/app/cks/page.tsx index 1352bbb..ed8b4ac 100644 --- a/src/app/cks/page.tsx +++ b/src/app/cks/page.tsx @@ -7,10 +7,10 @@ export default function CKS() { const questions = cks.questions["1.31"] as Record; const seqs = Object.keys(questions); const contents = useMemo(() => { - return seqs.map((seq) => { + return seqs.map((seq, i) => { const question = questions[seq]; return ( -
    +

    {`Question ${seq}`}

    {question} @@ -28,18 +28,10 @@ export default function CKS() {