Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/[...filename]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { cookies } from "next/headers";
export default async function Home({
params,
}: {
params: { filename: string[] };
params: Promise<{ filename: string[] }>;
}) {
const { filename } = await params;
const cookieStore = await cookies();
const data = await client.queries.page({
relativePath: `${params.filename.join("/")}.mdx`,
relativePath: `${filename.join("/")}.mdx`,
},
{
fetchOptions: {
Expand Down
5 changes: 3 additions & 2 deletions app/posts/[...filename]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { cookies } from "next/headers";
export default async function PostPage({
params,
}: {
params: { filename: string[] };
params: Promise<{ filename: string[] }>;
}) {
const { filename } = await params;
const cookieStore = await cookies();
const data = await client.queries.post({
relativePath: `${params.filename.join("/")}.mdx`,
relativePath: `${filename.join("/")}.mdx`,
},
{
fetchOptions: {
Expand Down
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
43 changes: 33 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "tinacms dev -c \"next dev\"",
"build": "tinacms build && next build",
"dev": "tinacms dev -c \"next dev --webpack\"",
"build": "tinacms build && next build --webpack",
"build-local": "tinacms build --local --skip-indexing --skip-cloud-checks && next build",
"start": "tinacms build && next start",
"export": "npm run build && next export",
Expand All @@ -13,14 +13,14 @@
},
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@tinacms/cli": "^1.11.0",
"@tinacms/cli": "^2.1.1",
"@types/js-cookie": "^3.0.6",
"@types/node": "^22.10.5",
"@types/react": "^18.3.18",
"@types/styled-components": "^5.1.34",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-next": "14.2.24",
"eslint-config-next": "16.1.4",
"postcss": "^8.5.1",
"postcss-import": "^16.1.0",
"postcss-nesting": "^13.0.1",
Expand All @@ -35,17 +35,40 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"mermaid": "^11.4.1",
"next": "^14.2.24",
"mermaid": "^11.12.2",
"next": "^16.1.4",
"prismjs": "^1.30.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-icons": "^5.4.0",
"react-player": "^2.16.0",
"styled-jsx": "^5.1.6",
"tailwind-merge": "^2.6.0",
"tailwindcss": "^3.4.10",
"tinacms": "^2.9.0",
"tailwindcss": "^3.4.19",
"tinacms": "^3.3.1",
"usehooks-ts": "^3.1.0"
},
"pnpm": {
"overrides": {
"vite": "~5.4.21",
"dompurify@<2.5.4": ">=2.5.4",
"mermaid@<=10.9.2": ">=10.9.3",
"esbuild@<=0.24.2": ">=0.25.0",
"jsonpath-plus@<10.2.0": ">=10.2.0",
"jsonpath-plus@<10.3.0": ">=10.3.0",
"@babel/helpers@<7.26.10": ">=7.26.10",
"cross-spawn@>=7.0.0 <7.0.5": ">=7.0.5",
"brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
"dompurify@<3.2.4": ">=3.2.4",
"dompurify@<2.4.2": ">=2.4.2",
"dompurify@<2.5.0": ">=2.5.0",
"js-yaml@>=4.0.0 <4.1.1": ">=4.1.1",
"glob@>=10.2.0 <10.5.0": ">=10.5.0",
"mdast-util-to-hast@>=13.0.0 <13.2.1": ">=13.2.1",
"react-router@>=6.0.0 <6.30.2": ">=6.30.2",
"diff@<8.0.3": ">=8.0.3"
}
}
}
Loading