From dd38869305f52b2ae17217d72fb16242db7f8890 Mon Sep 17 00:00:00 2001 From: Ishpaul Singh Date: Tue, 21 Nov 2023 00:13:05 +0530 Subject: [PATCH 1/2] fix link to the referral program details --- config/webpack/webpack.dev.js | 23 +++++++++++++++++++++++ src/CONST.ts | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/config/webpack/webpack.dev.js b/config/webpack/webpack.dev.js index e28383eff557..b14425a9f408 100644 --- a/config/webpack/webpack.dev.js +++ b/config/webpack/webpack.dev.js @@ -2,6 +2,7 @@ const path = require('path'); const portfinder = require('portfinder'); const {DefinePlugin} = require('webpack'); const {merge} = require('webpack-merge'); +const CopyPlugin = require('copy-webpack-plugin'); const {TimeAnalyticsPlugin} = require('time-analytics-webpack-plugin'); const getCommonConfig = require('./webpack.common'); @@ -45,6 +46,7 @@ module.exports = (env = {}) => historyApiFallback: true, port, host: 'dev.new.expensify.com', + allowedHosts: 'all', server: { type: 'https', options: { @@ -57,6 +59,27 @@ module.exports = (env = {}) => new DefinePlugin({ 'process.env.PORT': port, }), + new CopyPlugin({ + patterns: [ + {from: 'web/favicon.png'}, + {from: 'web/favicon-unread.png'}, + {from: 'web/og-preview-image.png'}, + {from: 'web/apple-touch-icon.png'}, + {from: 'assets/images/expensify-app-icon.svg'}, + {from: 'web/manifest.json'}, + {from: 'assets/css', to: 'css'}, + {from: 'assets/fonts/web', to: 'fonts'}, + {from: 'node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css', to: 'css/AnnotationLayer.css'}, + {from: 'node_modules/react-pdf/dist/esm/Page/TextLayer.css', to: 'css/TextLayer.css'}, + {from: 'assets/images/shadow.png', to: 'images/shadow.png'}, + {from: '.well-known/apple-app-site-association', to: '.well-known/apple-app-site-association', toType: 'file'}, + {from: '.well-known/assetlinks.json', to: '.well-known/assetlinks.json'}, + + // These files are copied over as per instructions here + // https://github.com/wojtekmaj/react-pdf#copying-cmaps + {from: 'node_modules/pdfjs-dist/cmaps/', to: 'cmaps/'}, + ], + }), ], cache: { type: 'filesystem', diff --git a/src/CONST.ts b/src/CONST.ts index 709e9d3bafe2..80bc2cf8e4a4 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -2899,7 +2899,7 @@ const CONST = { REFER_FRIEND: 'referralFriend', }, REVENUE: 250, - LEARN_MORE_LINK: 'https://help.expensify.com/articles/new-expensify/getting-started/Referral-Program', + LEARN_MORE_LINK: 'https://help.expensify.com/articles/new-expensify/billing-and-plan-types/Referral-Program', LINK: 'https://join.my.expensify.com', }, } as const; From 2a5139f8221f7f56169874300e5f4d0ea1856572 Mon Sep 17 00:00:00 2001 From: Ishpaul Singh Date: Tue, 21 Nov 2023 00:20:06 +0530 Subject: [PATCH 2/2] remove unrelated changes --- config/webpack/webpack.dev.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/config/webpack/webpack.dev.js b/config/webpack/webpack.dev.js index b14425a9f408..e28383eff557 100644 --- a/config/webpack/webpack.dev.js +++ b/config/webpack/webpack.dev.js @@ -2,7 +2,6 @@ const path = require('path'); const portfinder = require('portfinder'); const {DefinePlugin} = require('webpack'); const {merge} = require('webpack-merge'); -const CopyPlugin = require('copy-webpack-plugin'); const {TimeAnalyticsPlugin} = require('time-analytics-webpack-plugin'); const getCommonConfig = require('./webpack.common'); @@ -46,7 +45,6 @@ module.exports = (env = {}) => historyApiFallback: true, port, host: 'dev.new.expensify.com', - allowedHosts: 'all', server: { type: 'https', options: { @@ -59,27 +57,6 @@ module.exports = (env = {}) => new DefinePlugin({ 'process.env.PORT': port, }), - new CopyPlugin({ - patterns: [ - {from: 'web/favicon.png'}, - {from: 'web/favicon-unread.png'}, - {from: 'web/og-preview-image.png'}, - {from: 'web/apple-touch-icon.png'}, - {from: 'assets/images/expensify-app-icon.svg'}, - {from: 'web/manifest.json'}, - {from: 'assets/css', to: 'css'}, - {from: 'assets/fonts/web', to: 'fonts'}, - {from: 'node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css', to: 'css/AnnotationLayer.css'}, - {from: 'node_modules/react-pdf/dist/esm/Page/TextLayer.css', to: 'css/TextLayer.css'}, - {from: 'assets/images/shadow.png', to: 'images/shadow.png'}, - {from: '.well-known/apple-app-site-association', to: '.well-known/apple-app-site-association', toType: 'file'}, - {from: '.well-known/assetlinks.json', to: '.well-known/assetlinks.json'}, - - // These files are copied over as per instructions here - // https://github.com/wojtekmaj/react-pdf#copying-cmaps - {from: 'node_modules/pdfjs-dist/cmaps/', to: 'cmaps/'}, - ], - }), ], cache: { type: 'filesystem',