rsnext/test/integration/serverless
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
..
components Serverless Next.js (#5927) 2018-12-28 11:39:12 +01:00
pages Fix dynamic APIs with query params (#8386) 2019-08-19 13:19:39 -04:00
public Fix next start in serverless mode with public directory (#7541) 2019-06-09 17:18:38 -07:00
test Fix dynamic APIs with query params (#8386) 2019-08-19 13:19:39 -04:00
next.config.js Add empty publicRuntimeConfig to serverless tests (#7948) 2019-07-15 22:03:16 +02:00