Fix error 500 (#41205)
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
Showing
Please
register
or
sign in
to comment