Skip to content

Updates blog example to Next.js 15 and adds types #968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
13 changes: 8 additions & 5 deletions solutions/blog/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -18,16 +23,14 @@
# misc
.DS_Store
*.pem
.vscode

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files
.env
# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel
Expand Down
8 changes: 8 additions & 0 deletions solutions/blog/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
/* config options here */
transpilePackages: ['next-mdx-remote'],
};

export default nextConfig;
25 changes: 14 additions & 11 deletions solutions/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@
"start": "next start"
},
"dependencies": {
"@tailwindcss/postcss": "4.0.0-alpha.13",
"@types/node": "20.11.17",
"@types/react": "18.2.55",
"@types/react-dom": "18.2.19",
"@vercel/analytics": "^1.1.3",
"@vercel/speed-insights": "^1.0.9",
"geist": "1.2.2",
"next": "canary",
"next-mdx-remote": "^4.4.1",
"postcss": "^8.4.35",
"next": "15.0.1",
"next-mdx-remote": "^5.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"sugar-high": "^0.6.0",
"tailwindcss": "4.0.0-alpha.13",
"typescript": "5.3.3"
"sugar-high": "^0.6.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^9.13.0",
"eslint-config-next": "15.0.1",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
}
Loading