mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
In addition to reapplying #83944, removed added tests and warnings from https://github.com/vercel/next.js/pull/84168
41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
module.exports = (phase) => {
|
|
return {
|
|
output: 'export',
|
|
distDir: 'out',
|
|
trailingSlash: true,
|
|
exportPathMap: function () {
|
|
return {
|
|
'/': { page: '/' },
|
|
'/index': { page: '/' },
|
|
'/about': { page: '/about' },
|
|
'/button-link': { page: '/button-link' },
|
|
'/hash-link': { page: '/hash-link' },
|
|
'/empty-hash-link': { page: '/empty-hash-link' },
|
|
'/empty-query-link': { page: '/empty-query-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: 'Vercel is awesome' },
|
|
},
|
|
'/file-name.md': {
|
|
page: '/dynamic',
|
|
query: { text: 'this file has an extension' },
|
|
},
|
|
'/query': { page: '/query', query: { a: 'blue' } },
|
|
'/query-update': { page: '/query-update', query: { a: 'blue' } },
|
|
// API route
|
|
'/blog/nextjs/comment/test': { page: '/blog/[post]/comment/[id]' },
|
|
}
|
|
}, // end exportPathMap
|
|
}
|
|
}
|