1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test
Luc e98a877ee4 Merge url query with exportPathMap (#4678)
This PR fixes #4615

From the issue :
> One thing we might consider is merging and showing a warning for keys not defined in exportPathMap

The behaviour after this PR is the following :

```js
// next.config.js
module.exports = {
  exportPathMap: () => ({
    '/': { page: '/', query: { a: 'blue' } }
  })
}
```

| url called | `ctx.query` | warning ? |
|-|-|-|
| `/` | `{ a: 'blue' }` | |
| `/?a=red` | `{ a: 'blue' }` | |
| `/?b=green` | `{ a: 'blue', b: 'green' }` | `... parameter 'b' missing in exportPathMap` |

Is that the expected behaviour ? If not, I'll update the PR to shape the expected behavior.
2018-06-28 08:37:57 +02:00
..
integration Merge url query with exportPathMap (#4678) 2018-06-28 08:37:57 +02:00
isolated Move build directory outside of server folder (#4565) 2018-06-14 19:30:14 +02:00
lib Move build directory outside of server folder (#4565) 2018-06-14 19:30:14 +02:00
node_modules Handle empty assetPrefix scenario properly. (#3667) 2018-02-03 17:12:01 +01:00
unit Move build directory outside of server folder (#4565) 2018-06-14 19:30:14 +02:00
.babelrc Speed up tests (#4102) 2018-04-03 14:43:56 +02:00
.gitignore Universal Webpack (#3578) 2018-01-30 16:44:44 +01:00