Update contentlayer import paths and build script

keypair34 committed May 14, 2026 at 20:37 UTC ec7564854d8ce0049f87956b887dd5bd224d5652
6 files changed +6 -6
app/kti/[term]/page.tsx
+1 -1
@@ -1,5 +1,5 @@
1 import type { Metadata } from "next";
2 -import { allKtis } from "@/.contentlayer/generated";
2 +import { allKtis } from "contentlayer/generated";
3 import { notFound } from "next/navigation";
4 import { Mdx } from "@/components/mdx-components";
5 import Link from "next/link";
app/kti/page.tsx
+1 -1
@@ -1,5 +1,5 @@
1 import type { Metadata } from "next";
2 -import { allKtis } from "@/.contentlayer/generated";
2 +import { allKtis } from "contentlayer/generated";
3 import Link from "next/link";
4 import { StructuredData } from "@/components/structured-data";
5 import siteMetadata from "@/content/siteMetadata";
app/page.tsx
+1 -1
@@ -1,5 +1,5 @@
1 import type { Metadata } from "next";
2 -import { allPosts } from "@/.contentlayer/generated";
2 +import { allPosts } from "contentlayer/generated";
3 import Link from "next/link";
4 import TabbedRunner from "./components/TabbedRunner";
5 import { FaApple, FaGooglePlay, FaWindows } from "react-icons/fa";
app/posts/page.tsx
+1 -1
@@ -1,5 +1,5 @@
1 import type { Metadata } from "next";
2 -import { allPosts } from "@/.contentlayer/generated";
2 +import { allPosts } from "contentlayer/generated";
3 import Link from "next/link";
4 import { StructuredData } from "@/components/structured-data";
5 import siteMetadata from "@/content/siteMetadata";
next-env.d.ts
+1 -1
@@ -1,6 +1,6 @@
1 /// <reference types="next" />
2 /// <reference types="next/image-types/global" />
3 -import "./.next/dev/types/routes.d.ts";
3 +import "./.next/types/routes.d.ts";
4
5 // NOTE: This file should not be edited
6 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
package.json
+1 -1
@@ -4,7 +4,7 @@
4 "private": true,
5 "scripts": {
6 "dev": "next dev",
7 - "build": "SKIP_LINT=true next build",
7 + "build": "pnpm build:content && SKIP_LINT=true next build",
8 "build:content": "contentlayer2 build",
9 "preview": "next build && next start",
10 "start": "next start",