mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
Upgrade packages in next-learn/dashboard (#1061)
* chore: Bump packages in starter-example * chore: Bump packages in final-example * chore: allow bcrypt to build * chore: prettier fixes
This commit is contained in:
@@ -3,14 +3,14 @@ import postgres from 'postgres';
|
||||
const sql = postgres(process.env.POSTGRES_URL!, { ssl: 'require' });
|
||||
|
||||
async function listInvoices() {
|
||||
const data = await sql`
|
||||
const data = await sql`
|
||||
SELECT invoices.amount, customers.name
|
||||
FROM invoices
|
||||
JOIN customers ON invoices.customer_id = customers.id
|
||||
WHERE invoices.amount = 666;
|
||||
`;
|
||||
|
||||
return data;
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function GET() {
|
||||
@@ -19,8 +19,8 @@ export async function GET() {
|
||||
// 'Uncomment this file and remove this line. You can delete this file when you are finished.',
|
||||
// });
|
||||
try {
|
||||
return Response.json(await listInvoices());
|
||||
return Response.json(await listInvoices());
|
||||
} catch (error) {
|
||||
return Response.json({ error }, { status: 500 });
|
||||
return Response.json({ error }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,18 +14,23 @@
|
||||
"next": "latest",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"postcss": "8.5.1",
|
||||
"postgres": "^3.4.5",
|
||||
"postgres": "^3.4.6",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.7.3",
|
||||
"use-debounce": "^10.0.4",
|
||||
"zod": "^3.24.1"
|
||||
"zod": "^3.25.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
"@types/node": "22.10.7",
|
||||
"@types/react": "19.0.7",
|
||||
"@types/react-dom": "19.0.3"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"bcrypt"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
497
dashboard/final-example/pnpm-lock.yaml
generated
497
dashboard/final-example/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -14,13 +14,13 @@
|
||||
"next": "latest",
|
||||
"next-auth": "5.0.0-beta.25",
|
||||
"postcss": "8.5.1",
|
||||
"postgres": "^3.4.5",
|
||||
"postgres": "^3.4.6",
|
||||
"react": "latest",
|
||||
"react-dom": "latest",
|
||||
"tailwindcss": "3.4.17",
|
||||
"typescript": "5.7.3",
|
||||
"use-debounce": "^10.0.4",
|
||||
"zod": "^3.24.1"
|
||||
"zod": "^3.25.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
|
||||
497
dashboard/starter-example/pnpm-lock.yaml
generated
497
dashboard/starter-example/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user