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

Fix error 500 #41205

Merged
merged 2 commits into from Oct 6, 2022
Merged

Fix error 500 #41205

merged 2 commits into from Oct 6, 2022

Commits on Oct 6, 2022

  1. Fix error 500

    Fix the following problem:
    
    ```
      page: '/api/todos'
    }
      10 | 
      11 |   if (method === 'GET') {
    > 12 |     const { value: items } = await base.fetch([]).next()
         |                                                  ^
      13 |     respBody = items
      14 |     res.statusCode = 200
      15 |   } else if (method === 'POST') {
    warn  - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
    ```
    
    Working app -> https://with-deta-base-ashy.vercel.app
    Temp repo -> https://github.com/silvioprog/with-deta-base
    silvioprog committed Oct 6, 2022
    Configuration menu
    Copy the full SHA
    2eab76e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01789d5 View commit details
    Browse the repository at this point in the history