diff --git a/reactNativeWeb/version.json b/reactNativeWeb/version.json index e80b06ad..4403532a 100644 --- a/reactNativeWeb/version.json +++ b/reactNativeWeb/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.2" + "version": "1.0.3" } \ No newline at end of file diff --git a/reactNativeWeb/webpack.config.js b/reactNativeWeb/webpack.config.js index 752de2ac..6d25c76b 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 ae8b1a38..68fbdde4 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 01333f82..f14a191e 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, };