-
Notifications
You must be signed in to change notification settings - Fork 175
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
NextJs Example: fixes for serverless deployment #2103
base: main
Are you sure you want to change the base?
Conversation
return NextResponse.json({ id: result.rows[0].id }) | ||
|
||
try { | ||
await client.connect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use a pool you can do pool.query
instead of this pattern of having to connect, query, and then disconnect. Same for Line 26.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep. applying these changes throughout open PRs as I go through them. thanks you for raising
6dd3d11
to
a3c7bbf
Compare
Examples
|
c7b6dbb
to
0af76b0
Compare
707ab8a
to
8e405a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7f0afbd
to
78cb6b5
Compare
Some fixes and updated SST