From 7f26785129f1b741ff78284e0e74ceb3f20660bc Mon Sep 17 00:00:00 2001 From: 25harsh Date: Mon, 21 Oct 2024 19:17:38 +0530 Subject: [PATCH] chore: Release 1.0.3 --- reactNativeWeb/webpack.config.js | 3 ++- scripts/prepareS3.js | 4 ++-- scripts/pushToS3.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/reactNativeWeb/webpack.config.js b/reactNativeWeb/webpack.config.js index 752de2a..6d25c76 100644 --- a/reactNativeWeb/webpack.config.js +++ b/reactNativeWeb/webpack.config.js @@ -6,7 +6,8 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'); const appDirectory = path.resolve(__dirname); const {presets, plugins} = require(`${appDirectory}/babel.config.js`); -const isDevelopment = process.env.NODE_ENV !== 'production'; +// const isDevelopment = process.env.NODE_ENV !== 'production'; +const isDevelopment = false; const repoVersion = require("./version.json").version; const majorVersion = "v" + repoVersion.split(".")[0]; const repoPublicPath = `/mobile/${repoVersion}/${majorVersion}`; diff --git a/scripts/prepareS3.js b/scripts/prepareS3.js index ae8b1a3..68fbdde 100644 --- a/scripts/prepareS3.js +++ b/scripts/prepareS3.js @@ -42,8 +42,8 @@ async function doInvalidation(distributionId, urlPrefix, region, s3Bucket) { Quantity: s3Bucket === process.env.S3_SANDBOX_BUCKET ? 2 : 1, Items: s3Bucket === process.env.S3_SANDBOX_BUCKET - ? [`${withSlash(urlPrefix)}/*`, `${withSlash("v0")}/*`] - : [`${withSlash(urlPrefix)}/*`], + ? [`/mobile${withSlash(urlPrefix)}/*`, `/mobile${withSlash("v0")}/*`] + : [`/mobile${withSlash(urlPrefix)}/*`], }, }, }; diff --git a/scripts/pushToS3.js b/scripts/pushToS3.js index 01333f8..f14a191 100644 --- a/scripts/pushToS3.js +++ b/scripts/pushToS3.js @@ -7,7 +7,7 @@ let params = { s3Bucket: process.env.BUCKET_NAME, distributionId: process.env.DIST_ID, urlPrefix: `v${version.split(".")[0]}`, - version: `${BASE_PATH}/${version}`, + version: `${BASE_PATH}/${version}/${BASE_PATH}`, distFolder: path.resolve(__dirname, "..", "reactNativeWeb/dist"), region: process.env.AWS_REGION, };