rsnext/test/integration/api-support
William ec95927e14 Fix dynamic APIs with query params (#8386)
* Fix dynamic APIs with query params

If you define a dynamic API such as

```
pages/
  api/
    [id].js
```

This api becomes available at `/api/[id]`. If you send a request with
a query parameter the value of `req.query.id` will include the query
string as well as the path parameter.

E.g. the request to `/api/2?test=123` will result in `req.query`
being

```javascript
{
  id: "2?test=123",
  test: "123",
}
```

instead of

```javascript
{
  id: "2",
  test: "123",
}
```

* Fix url parse in serverless loader

* Add serverless test
2019-08-19 13:19:39 -04:00
..
pages Fix build only server-side /api/index.js (#8167) 2019-07-30 13:52:43 +01:00
test Fix dynamic APIs with query params (#8386) 2019-08-19 13:19:39 -04:00
big.json Apply missing formatting (#8079) 2019-07-23 14:33:49 -04:00
next.config.js Dynamic routes for API (#7629) 2019-06-27 12:01:36 -04:00