From d6495466051a0f0ab52435a935417174480541a1 Mon Sep 17 00:00:00 2001 From: Carina Ursu Date: Thu, 29 Sep 2022 16:14:48 -0700 Subject: [PATCH] fix: enable deeplinks in development (#602) chore: enable deeplinks in development Signed-off-by: Carina Ursu Signed-off-by: Carina Ursu --- packages/zapp/console/package.json | 2 +- packages/zapp/console/webpack.dev.config.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/zapp/console/package.json b/packages/zapp/console/package.json index cde51671e..d4451e70b 100644 --- a/packages/zapp/console/package.json +++ b/packages/zapp/console/package.json @@ -11,7 +11,7 @@ "clean": "rm -rf dist", "build": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' webpack --config webpack.dev.config.ts --mode=development", "build:prod": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' NODE_ENV=production webpack --config webpack.prod.config.ts --mode=production --progress", - "start": "webpack serve --config webpack.dev.config.ts --hot", + "start": "webpack serve --config webpack.dev.config.ts", "start:prod": "NODE_ENV=production node -r dotenv/config index.js", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "format": "prettier --ignore-path .eslintignore --write \"**/*.+(js|jsx|ts|tsx|json)\"", diff --git a/packages/zapp/console/webpack.dev.config.ts b/packages/zapp/console/webpack.dev.config.ts index ab95f136c..d00ffc7b9 100644 --- a/packages/zapp/console/webpack.dev.config.ts +++ b/packages/zapp/console/webpack.dev.config.ts @@ -41,6 +41,10 @@ export const clientConfig: webpack.Configuration = merge(common.default.clientCo mode: 'development', devtool, devServer: { + historyApiFallback: { + logger: console.log.bind(console), + disableDotRule: true, + }, hot: true, open: [BASE_URL || '/'], static: { @@ -50,7 +54,6 @@ export const clientConfig: webpack.Configuration = merge(common.default.clientCo compress: true, port: 3000, host: LOCAL_DEV_HOST, - historyApiFallback: true, server: { type: ADMIN_API_USE_SSL, options: {