0590988552
This test was ensuring `app` directory is working correctly with `output: 'standalone'`. Instead of removing config we should conditionally set it for the test. Reverts vercel/next.js#43607 x-ref: https://github.com/vercel/next.js/actions/runs/3594732606/jobs/6055832699 x-ref: https://github.com/vercel/next.js/actions/runs/3594732606/jobs/6055832421
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
module.exports = {
|
|
experimental: {
|
|
appDir: true,
|
|
sri: {
|
|
algorithm: 'sha256',
|
|
},
|
|
},
|
|
// output: 'standalone',
|
|
rewrites: async () => {
|
|
return {
|
|
afterFiles: [
|
|
{
|
|
source: '/rewritten-to-dashboard',
|
|
destination: '/dashboard',
|
|
},
|
|
{
|
|
source: '/search-params-prop-rewrite',
|
|
destination:
|
|
'/search-params-prop?first=value&second=other%20value&third',
|
|
},
|
|
{
|
|
source: '/search-params-prop-server-rewrite',
|
|
destination:
|
|
'/search-params-prop/server?first=value&second=other%20value&third',
|
|
},
|
|
{
|
|
source: '/rewritten-use-search-params',
|
|
destination:
|
|
'/hooks/use-search-params?first=value&second=other%20value&third',
|
|
},
|
|
{
|
|
source: '/rewritten-use-pathname',
|
|
destination: '/hooks/use-pathname',
|
|
},
|
|
{
|
|
source: '/hooks/use-selected-layout-segment/rewritten',
|
|
destination:
|
|
'/hooks/use-selected-layout-segment/first/slug3/second/catch/all',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
redirects: () => {
|
|
return [
|
|
{
|
|
source: '/redirect/a',
|
|
destination: '/dashboard',
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
}
|