Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

balegas
Copy link
Contributor

@balegas balegas commented Dec 5, 2024

Some fixes and updated SST

return NextResponse.json({ id: result.rows[0].id })

try {
await client.connect()
Copy link
Contributor

@kevin-dp kevin-dp Dec 9, 2024

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.

Copy link
Contributor Author

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

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Examples

  • linearlite: undefined
  • nextjs: undefined

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants