Skip to content

Commit

Permalink
Merge pull request #525 from solarwinds/dependabot/npm_and_yarn/next-…
Browse files Browse the repository at this point in the history
…15.0.4

Bump next from 14.2.16 to 15.0.4
  • Loading branch information
raphael-theriault-swi authored Dec 12, 2024
2 parents 0291583 + 4fb6e01 commit be22e1d
Show file tree
Hide file tree
Showing 8 changed files with 427 additions and 386 deletions.
2 changes: 0 additions & 2 deletions examples/next-prisma/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.next/
.prisma/

db.sqlite
db.sqlite-journal
2 changes: 1 addition & 1 deletion examples/next-prisma/app/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function newOrDone(data: FormData) {
revalidatePath("/@todo")
revalidatePath("/@done")
} else {
const description = data.get("description").toString()
const description = data.get("description")!.toString()
await db().item.create({ data: { description } })

revalidatePath("/@todo")
Expand Down
2 changes: 1 addition & 1 deletion examples/next-prisma/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// 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.
5 changes: 1 addition & 4 deletions examples/next-prisma/next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
instrumentationHook: true,
serverComponentsExternalPackages: ["solarwinds-apm"],
},
serverExternalPackages: ["solarwinds-apm"],
// the following is only necessary due to a bug in how next.js handles monorepos
// it is not necessary to include in your own config
webpack: (config) => {
Expand Down
14 changes: 7 additions & 7 deletions examples/next-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
"private": true,
"scripts": {
"build": "prisma generate && prisma migrate deploy && next build",
"lint": "next lint",
"lint": "ESLINT_USE_FLAT_CONFIG=false next lint",
"start": "prisma generate && prisma migrate deploy && next start"
},
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"@prisma/client": "^6.0.1",
"@prisma/instrumentation": "^6.0.1",
"next": "^14.2.15",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"next": "^15.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"solarwinds-apm": "workspace:^"
},
"devDependencies": {
"@types/node": "^18.19.0",
"@types/react": "^18.3.11",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.15",
"@types/react": "^19.0.1",
"eslint": "^9.12.0",
"eslint-config-next": "^15.1.0",
"prisma": "^6.0.1",
"typescript": "~5.7.2"
}
Expand Down
5 changes: 3 additions & 2 deletions examples/next-prisma/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
Expand All @@ -17,7 +17,8 @@
{
"name": "next"
}
]
],
"target": "ES2017"
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down
1 change: 0 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"outputs": [
"dist/**",
".next/**",
".prisma/**",
"npm/*/*.node",
"npm/*/liboboe.so",
"COMPATIBILITY.md"
Expand Down
Loading

0 comments on commit be22e1d

Please sign in to comment.