Remix Js/V2/Webpack V2 Migrate Dev Server Port

/icons/calendar.svg

Last update

Sep 3, 2024

In your remix.config.js, rename devServerPort to future.v2_dev.port.

Before

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerPort: 8002,
};

After

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
// While on v1.x, this is via a future flag
future: {
v2_dev: {
port: 8002,
},
},
};

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now