module.exports = { devServer: { server: { type: 'https', // You can also specify custom certificates if needed: // options: { // cert: '/path/to/cert.pem', // key: '/path/to/key.pem', // } } }, webpack: { configure: (webpackConfig) => { // Add .ts and .tsx to resolve.extensions webpackConfig.resolve.extensions = [ ...webpackConfig.resolve.extensions, '.ts', '.tsx', ]; return webpackConfig; }, }, };