rsnext/test/integration/production/pages/api
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
..
[post] Fix dynamic APIs with query params (#8386) 2019-08-19 13:19:39 -04:00
hello.js Make sure API routes are built in production (#7306) 2019-05-11 15:32:38 +02:00
index.js Make sure API routes are built in production (#7306) 2019-05-11 15:32:38 +02:00