Compare commits
3 commits
main
...
bug/prisma
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b857ebd3c | ||
|
|
98c189959d | ||
|
|
d6a463732d |
4 changed files with 91 additions and 76 deletions
16
app/posts/page.tsx
Normal file
16
app/posts/page.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { db } from "@/lib/db"
|
||||
import { headers } from "next/headers"
|
||||
|
||||
export default async function PostsPage() {
|
||||
const posts = await db.post.findMany()
|
||||
|
||||
headers()
|
||||
|
||||
return (
|
||||
<div>
|
||||
{posts.map((post) => (
|
||||
<div key={post.id}>{post.title}</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ const nextConfig = {
|
|||
experimental: {
|
||||
appDir: true,
|
||||
newNextLinkBehavior: true,
|
||||
serverComponentsExternalPackages: ["prisma"],
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"fast-glob": "^3.2.12",
|
||||
"hasha": "^5.2.2",
|
||||
"lucide-react": "^0.92.0",
|
||||
"next": "^13.0.1",
|
||||
"next": "^13.0.2-canary.2",
|
||||
"next-auth": "^4.15.0",
|
||||
"next-mdx-remote": "^4.1.0",
|
||||
"node-cache": "^5.1.2",
|
||||
|
|
|
|||
148
yarn.lock
148
yarn.lock
|
|
@ -163,10 +163,10 @@
|
|||
resolved "https://registry.yarnpkg.com/@next-auth/prisma-adapter/-/prisma-adapter-1.0.5.tgz#41a2fc7b44907054b81d456b426164e58becf4ed"
|
||||
integrity sha512-VqMS11IxPXrPGXw6Oul6jcyS/n8GLOWzRMrPr3EMdtD6eOalM6zz05j08PcNiis8QzkfuYnCv49OvufTuaEwYQ==
|
||||
|
||||
"@next/env@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.1.tgz#0361e203c7bfbc7b69679ec48f7b45a8f4cb1c2c"
|
||||
integrity sha512-gK60YoFae3s8qi5UgIzbvxOhsh5gKyEaiKH5+kLBUYXLlrPyWJR2xKBj2WqvHkO7wDX7/Hed3DAqjSpU4ijIvQ==
|
||||
"@next/env@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.2-canary.2.tgz#d14965c8199245808771591251f03e1ae81bf295"
|
||||
integrity sha512-PXQNCwiqV3sOjf+ZBMUXVuzrE+IoI1cCcbj4iR2YRdqBMcVEzIlbF5uDtbrlzUASYs66XryKY8RcSEVixxdq/w==
|
||||
|
||||
"@next/eslint-plugin-next@13.0.0":
|
||||
version "13.0.0"
|
||||
|
|
@ -175,70 +175,70 @@
|
|||
dependencies:
|
||||
glob "7.1.7"
|
||||
|
||||
"@next/swc-android-arm-eabi@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.0.1.tgz#7ce2a7b6576845bc6d7f55504bf9b82a0d9a2792"
|
||||
integrity sha512-M28QSbohZlNXNn//HY6lV2T3YaMzG58Jwr0YwOdVmOQv6i+7lu6xe3GqQu4kdqInqhLrBXnL+nabFuGTVSHtTg==
|
||||
"@next/swc-android-arm-eabi@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.0.2-canary.2.tgz#6b45eba8aec9df2f5190e57d48b27c7bd7dffdff"
|
||||
integrity sha512-hpDI9ffA+HXwijLl0gS7jCStZw8C0pIxMRsViMaPUMEEFNnHQ+Vz6ONrygJlLHOz72S41RtsdE3/r2lKmuacUA==
|
||||
|
||||
"@next/swc-android-arm64@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.0.1.tgz#85a13d7667042394939741be218076e4e83a45a2"
|
||||
integrity sha512-szmO/i6GoHcPXcbhUKhwBMETWHNXH3ITz9wfxwOOFBNKdDU8pjKsHL88lg28aOiQYZSU1sxu1v1p9KY5kJIZCg==
|
||||
"@next/swc-android-arm64@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.0.2-canary.2.tgz#e2809bbed63d4459cc79f1ad2cb0fb165f03d677"
|
||||
integrity sha512-OGGODRoQj9iWrkRYil80I0WOqMPnE6Ajvs8t1K+sunrdVMISVlvGL6m7IoogNk9Ohsc43wglaJtC9kkV7PucNQ==
|
||||
|
||||
"@next/swc-darwin-arm64@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.1.tgz#d615d286127bb096a8950a9d7180fcc5d307614d"
|
||||
integrity sha512-O1RxCaiDNOjGZmdAp6SQoHUITt9aVDQXoR3lZ/TloI/NKRAyAV4u0KUUofK+KaZeHOmVTnPUaQuCyZSc3i1x5Q==
|
||||
"@next/swc-darwin-arm64@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.2-canary.2.tgz#26ed2fa3d4f86e3798d686cb76517e804aed3235"
|
||||
integrity sha512-x3OpymdXWiWzei6MmSmFGogMVBhCw7TFiaSHmEXmuu3IqeX9/zBmjxFck9sORgUuGNVzhaFuWmdDk1V9CeaoGQ==
|
||||
|
||||
"@next/swc-darwin-x64@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.0.1.tgz#f410beb8cbe0e82562226309f8ec8924cc6cb410"
|
||||
integrity sha512-8E6BY/VO+QqQkthhoWgB8mJMw1NcN9Vhl2OwEwxv8jy2r3zjeU+WNRxz4y8RLbcY0R1h+vHlXuP0mLnuac84tQ==
|
||||
"@next/swc-darwin-x64@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.0.2-canary.2.tgz#5be523e454036e7acc302acf51997d5401e7d621"
|
||||
integrity sha512-1BYcCn9njB3wRw6M0Sa1DVaOkPJ+Vv5tWXY7n2f822TOgWzBbhltxhHnfsKeJllKuilI35oaVyywIdrVwZK4Mg==
|
||||
|
||||
"@next/swc-freebsd-x64@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.0.1.tgz#16eb9652d3f638305ca16b558408f5bc5eb6edde"
|
||||
integrity sha512-ocwoOxm2KVwF50RyoAT+2RQPLlkyoF7sAqzMUVgj+S6+DTkY3iwH+Zpo0XAk2pnqT9qguOrKnEpq9EIx//+K7Q==
|
||||
"@next/swc-freebsd-x64@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.0.2-canary.2.tgz#f50b733f61287a1717f1ca04410d036efdf8b954"
|
||||
integrity sha512-FfQgNmmW+nQd/6A+8PWCy7gHueXhPbTt61mMxqTJOoQzX6g3qmZF3jvFktqlXnflHwzxOFZSS9eATwu6ooXOEw==
|
||||
|
||||
"@next/swc-linux-arm-gnueabihf@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.0.1.tgz#0da0700ccf654f813b4c86d057a998598a2fd427"
|
||||
integrity sha512-yO7e3zITfGol/N6lPQnmIRi0WyuILBMXrvH6EdmWzzqMDJFfTCII6l+B6gMO5WVDCTQUGQlQRNZ7sFqWR4I71g==
|
||||
"@next/swc-linux-arm-gnueabihf@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.0.2-canary.2.tgz#f4708b402019f4fc76c1b56aa1c01940a50ac604"
|
||||
integrity sha512-qTCNkQRKJa37KMdbMzBbx1jWOn/8cTlJJMCcPEIrLvmVvwh+Yzx6F2VlkTQ8uN80fv8ZUd/s/2GpZwdV/9Nv8A==
|
||||
|
||||
"@next/swc-linux-arm64-gnu@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.0.1.tgz#f34759cd41086f5b8b582081b2af54f67dc544ae"
|
||||
integrity sha512-OEs6WDPDI8RyM8SjOqTDMqMBfOlU97VnW6ZMXUvzUTyH0K9c7NF+cn7UMu+I4tKFN0uJ9WQs/6TYaFBGkgoVVA==
|
||||
"@next/swc-linux-arm64-gnu@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.0.2-canary.2.tgz#1e7b85f0e92e591f2a281bc27c024002c4849113"
|
||||
integrity sha512-0LGGDoa/cR87bD7KNRULu7VZSs6JQPRtT4FGNTPhaD2KNjzNGr5jocReGo0FajPxWu0fSX4aFrAQLcrBd3mLSw==
|
||||
|
||||
"@next/swc-linux-arm64-musl@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.0.1.tgz#bcfbf1cdfb9f4d632e7ebd67fd62b768cdd08cb7"
|
||||
integrity sha512-y5ypFK0Y3urZSFoQxbtDqvKsBx026sz+Fm+xHlPWlGHNZrbs3Q812iONjcZTo09QwRMk5X86iMWBRxV18xMhaw==
|
||||
"@next/swc-linux-arm64-musl@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.0.2-canary.2.tgz#9acb29dfcad0ab7f5100554cb3b9420c743aa48e"
|
||||
integrity sha512-dNHAyWrilhnuW/HfV0rIs8AV4T0NEFZLHzmFEsGlx7zWvSuy6jXtALEONfz5A6VSSjqV+YjMB1tOE/r79ijRDQ==
|
||||
|
||||
"@next/swc-linux-x64-gnu@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.0.1.tgz#ed77528d4a3195d5e57d5d94d12cb2206c2b19ac"
|
||||
integrity sha512-XDIHEE6SU8VCF+dUVntD6PDv6RK31N0forx9kucZBYirbe8vCZ+Yx8hYgvtIaGrTcWtGxibxmND0pIuHDq8H5g==
|
||||
"@next/swc-linux-x64-gnu@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.0.2-canary.2.tgz#5cb554a505429cb975da5f0ab1b1f9d6a42f6a45"
|
||||
integrity sha512-GgeLJ5GOpwbWlS/RE6UomQiHQMrgl8fbn/7lrY3BCnIruwjpQtTGkGzZZwQrRQ0ei00QUJiys4yAeqaz60vcFA==
|
||||
|
||||
"@next/swc-linux-x64-musl@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.0.1.tgz#74cda49229d2a7fa421fee6b7dcd621a57934a5e"
|
||||
integrity sha512-yxIOuuz5EOx0F1FDtsyzaLgnDym0Ysxv8CWeJyDTKKmt9BVyITg6q/cD+RP9bEkT1TQi+PYXIMATSz675Q82xw==
|
||||
"@next/swc-linux-x64-musl@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.0.2-canary.2.tgz#e5900fcc96fda563dbb288e62f7c300dc3a12979"
|
||||
integrity sha512-hlKmBYy7uDgTNUY1jT1CHqqke46EIQWgxevehRXe07T2kph/yFFXRAFcTQ/lizW+E6VWDZXBrg52dd621wpv/A==
|
||||
|
||||
"@next/swc-win32-arm64-msvc@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.0.1.tgz#15d6add92aa897148d6c45749bf9d2eacee87197"
|
||||
integrity sha512-+ucLe2qgQzP+FM94jD4ns6LDGyMFaX9k3lVHqu/tsQCy2giMymbport4y4p77mYcXEMlDaHMzlHgOQyHRniWFA==
|
||||
"@next/swc-win32-arm64-msvc@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.0.2-canary.2.tgz#fc3161e8852509e4edca8abc1cab8f4c577ca982"
|
||||
integrity sha512-BbKmW1fupaoCusbolAomi4RHWf5jPfKRqIjRh2jBx7biD87B5BjZ7x4RdKHiO6UWVsncbrN8bDilceYYxG44hw==
|
||||
|
||||
"@next/swc-win32-ia32-msvc@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.0.1.tgz#e0c57902fe75327d092abb1ef19657775fe26f85"
|
||||
integrity sha512-Krr/qGN7OB35oZuvMAZKoXDt2IapynIWLh5A5rz6AODb7f/ZJqyAuZSK12vOa2zKdobS36Qm4IlxxBqn9c00MA==
|
||||
"@next/swc-win32-ia32-msvc@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.0.2-canary.2.tgz#a08f27e23ec26d69e8159612a760e94a2e5b6c20"
|
||||
integrity sha512-KMzmQdz8mc590N9dhzkluIU5nTSAgxZ39u/83AaMkgyiSHIxCm9X6Bamqf+cSSZk4lO6caCQiM2RNYudncj27A==
|
||||
|
||||
"@next/swc-win32-x64-msvc@13.0.1":
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.1.tgz#469dde61519f6a310874af93ee5969f1d5ff6d03"
|
||||
integrity sha512-t/0G33t/6VGWZUGCOT7rG42qqvf/x+MrFp1CU+8CN6PrjSSL57R5bqkXfubV9t4eCEnUxVP+5Hn3MoEXEebtEw==
|
||||
"@next/swc-win32-x64-msvc@13.0.2-canary.2":
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.2-canary.2.tgz#6e08846ed9c34fab07da2ed39ba2f6420ba138d5"
|
||||
integrity sha512-38+HfiEfPCNFzO227jt93P6Dd7DO11Pf5ZhZ2RpUF3X0usXn+sZI2TiG+YK24bVy6/ol6LhJJFNCqa0Q7Pli6Q==
|
||||
|
||||
"@nodelib/fs.scandir@2.1.5":
|
||||
version "2.1.5"
|
||||
|
|
@ -2829,31 +2829,31 @@ next-mdx-remote@^4.1.0:
|
|||
vfile "^5.3.0"
|
||||
vfile-matter "^3.0.1"
|
||||
|
||||
next@^13.0.1:
|
||||
version "13.0.1"
|
||||
resolved "https://registry.yarnpkg.com/next/-/next-13.0.1.tgz#8b4fc9998e58f503bdecb92f06fe6f850ac260d0"
|
||||
integrity sha512-ErCNBPIeZMKFn6hX+ZBSlqZVgJIeitEqhGTuQUNmYXJ07/A71DZ7AJI8eyHYUdBb686LUpV1/oBdTq9RpzRVPg==
|
||||
next@^13.0.2-canary.2:
|
||||
version "13.0.2-canary.2"
|
||||
resolved "https://registry.yarnpkg.com/next/-/next-13.0.2-canary.2.tgz#e7e989dc8298f20e53bee5d5d74e39df4213a497"
|
||||
integrity sha512-5P8JIqJ9a3Qofv82g+KJrSlb+XGOWGMAL7gkLiGmA8NH3hwxsRLxht6+RHgK9lgB+VMXiNBn4y6KAbRFzWph9w==
|
||||
dependencies:
|
||||
"@next/env" "13.0.1"
|
||||
"@next/env" "13.0.2-canary.2"
|
||||
"@swc/helpers" "0.4.11"
|
||||
caniuse-lite "^1.0.30001406"
|
||||
postcss "8.4.14"
|
||||
styled-jsx "5.1.0"
|
||||
use-sync-external-store "1.2.0"
|
||||
optionalDependencies:
|
||||
"@next/swc-android-arm-eabi" "13.0.1"
|
||||
"@next/swc-android-arm64" "13.0.1"
|
||||
"@next/swc-darwin-arm64" "13.0.1"
|
||||
"@next/swc-darwin-x64" "13.0.1"
|
||||
"@next/swc-freebsd-x64" "13.0.1"
|
||||
"@next/swc-linux-arm-gnueabihf" "13.0.1"
|
||||
"@next/swc-linux-arm64-gnu" "13.0.1"
|
||||
"@next/swc-linux-arm64-musl" "13.0.1"
|
||||
"@next/swc-linux-x64-gnu" "13.0.1"
|
||||
"@next/swc-linux-x64-musl" "13.0.1"
|
||||
"@next/swc-win32-arm64-msvc" "13.0.1"
|
||||
"@next/swc-win32-ia32-msvc" "13.0.1"
|
||||
"@next/swc-win32-x64-msvc" "13.0.1"
|
||||
"@next/swc-android-arm-eabi" "13.0.2-canary.2"
|
||||
"@next/swc-android-arm64" "13.0.2-canary.2"
|
||||
"@next/swc-darwin-arm64" "13.0.2-canary.2"
|
||||
"@next/swc-darwin-x64" "13.0.2-canary.2"
|
||||
"@next/swc-freebsd-x64" "13.0.2-canary.2"
|
||||
"@next/swc-linux-arm-gnueabihf" "13.0.2-canary.2"
|
||||
"@next/swc-linux-arm64-gnu" "13.0.2-canary.2"
|
||||
"@next/swc-linux-arm64-musl" "13.0.2-canary.2"
|
||||
"@next/swc-linux-x64-gnu" "13.0.2-canary.2"
|
||||
"@next/swc-linux-x64-musl" "13.0.2-canary.2"
|
||||
"@next/swc-win32-arm64-msvc" "13.0.2-canary.2"
|
||||
"@next/swc-win32-ia32-msvc" "13.0.2-canary.2"
|
||||
"@next/swc-win32-x64-msvc" "13.0.2-canary.2"
|
||||
|
||||
node-abi@^3.3.0:
|
||||
version "3.28.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue