Skip to content

Commit

Permalink
chore: Release 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
25harsh committed Oct 21, 2024
1 parent b94afe2 commit 7f26785
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion reactNativeWeb/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepareS3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}/*`],
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/pushToS3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 7f26785

Please sign in to comment.