2018-10-01 22:55:31 +00:00
|
|
|
const {PHASE_DEVELOPMENT_SERVER} = require('next-server/constants')
|
2018-04-12 07:47:42 +00:00
|
|
|
|
|
|
|
module.exports = (phase) => {
|
|
|
|
return {
|
|
|
|
distDir: phase === PHASE_DEVELOPMENT_SERVER ? '.next-dev' : '.next',
|
|
|
|
exportPathMap: function () {
|
|
|
|
return {
|
|
|
|
'/': { page: '/' },
|
|
|
|
'/about': { page: '/about' },
|
|
|
|
'/asset': { page: '/asset' },
|
|
|
|
'/button-link': { page: '/button-link' },
|
|
|
|
'/get-initial-props-with-no-query': { page: '/get-initial-props-with-no-query' },
|
|
|
|
'/counter': { page: '/counter' },
|
|
|
|
'/dynamic-imports': { page: '/dynamic-imports' },
|
|
|
|
'/dynamic': { page: '/dynamic', query: { text: 'cool dynamic text' } },
|
|
|
|
'/dynamic/one': { page: '/dynamic', query: { text: 'next export is nice' } },
|
|
|
|
'/dynamic/two': { page: '/dynamic', query: { text: 'zeit is awesome' } },
|
2018-06-28 06:37:57 +00:00
|
|
|
'/file-name.md': { page: '/dynamic', query: { text: 'this file has an extension' } },
|
|
|
|
'/query': { page: '/query', query: { a: 'blue' } }
|
2018-04-12 07:47:42 +00:00
|
|
|
}
|
2017-05-09 21:03:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|