From 96e074cc2d94588075a9aa07e24b3d8bf95d4550 Mon Sep 17 00:00:00 2001 From: Ayobami Date: Mon, 7 Jul 2025 22:13:32 +0100 Subject: [PATCH] feat: ngrok setup --- config/webpack.dev.js | 21 +++++++++++++++++++-- package.json | 3 --- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/config/webpack.dev.js b/config/webpack.dev.js index eb0bd08..fb99615 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -16,6 +16,18 @@ module.exports = merge(common, { filename: 'js/[name].[contenthash].bundle.js', }, // Spin up a server for quick development + // devServer: { + // historyApiFallback: true, + // contentBase: path.normalize(paths.build), + // index: '/', + // open: true, + // compress: true, + // hot: true, + // port: 3000, + // host: 'test.manaknightdev.com', + // https: true, + // noInfo: true, //This turns off information regarding the bundle. Set to false if you need to view the messages + // }, devServer: { historyApiFallback: true, contentBase: path.normalize(paths.build), @@ -24,9 +36,14 @@ module.exports = merge(common, { compress: true, hot: true, port: 3000, - host: 'test.manaknightdev.com', + host: '0.0.0.0', https: true, - noInfo: true, //This turns off information regarding the bundle. Set to false if you need to view the messages + allowedHosts: [ + '.ngrok-free.app', // allow any ngrok subdomain + // 'localhost', + 'test.manaknightdev.com', + ], + noInfo: true, }, module: { diff --git a/package.json b/package.json index bbe0440..b7bff5b 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,6 @@ "version": "1.0.0", "main": "index.js", "license": "MIT", - "engines": { - "node": "18.x" - }, "scripts": { "start": "cross-env NODE_ENV=development webpack serve --config config/webpack.dev.js", "prep": "yarn && yarn prepare-husky && yarn start",