module.exports = {
async redirects() {
return [
{
source: '/signup',
destination: '/sign-up',
permanent: true,
},
];
},
};
module.exports = (phase) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
env: {
test: 'hello',
},
};
}
return {
env: {
test: 'hello world',
},
};
};
module.exports = (phase, { defaultConfig }) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
...defaultConfig,
future: {
webpack5: true,
},
redirects: async () => {
return [
{
source: '/sign-up',
destination: '/signup',
permanent: true,
},
];
},
env: {
test: 'hello',
},
};
}
return {
/* config options for all phases except development here */
};
};