mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This fixes a client-side file not being transpiled correctly when rewrites are used. The cross browser tests have been updated to make sure there are rewrites so the related code is included and not dead-code eliminated' Closes: https://github.com/vercel/next.js/issues/16440
12 lines
196 B
JavaScript
12 lines
196 B
JavaScript
module.exports = {
|
|
rewrites() {
|
|
// add a rewrite so the code isn't dead-code eliminated
|
|
return [
|
|
{
|
|
source: '/some-rewrite',
|
|
destination: '/',
|
|
},
|
|
]
|
|
},
|
|
}
|