gdu 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # gdu
2
2
 
3
+ ## 4.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: Fixes spa public path for prod env
8
+
3
9
  ## 4.0.8
4
10
 
5
11
  ### Patch Changes
@@ -50,7 +50,6 @@ const createNextJSConfig = (buildEnv) => {
50
50
  const isDev = !misc_1.isEnvProduction();
51
51
  const env = process.env.APP_ENV || (isDev ? 'dev' : buildEnv);
52
52
  const assetPrefix = isDev ? '' : (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath;
53
- console.log({ assetPrefix, isDev });
54
53
  return {
55
54
  distDir: `dist/${env}/${assetPrefix}`,
56
55
  reactStrictMode: true,
@@ -76,7 +76,6 @@ const baseOptions = (buildEnv, isMultiEnv) => ({
76
76
  mode: isDev ? 'development' : 'production',
77
77
  entry: {
78
78
  main: [
79
- !isDev && path_1.join(gduEntryPath, '/spa/set-public-path.js'),
80
79
  path_1.join(gduEntryPath, '/polyfill.js'),
81
80
  path_1.join(gduEntryPath, '/spa/client.js'),
82
81
  ].filter(Boolean),
@@ -304,7 +303,7 @@ const makeWebpackConfig = (buildEnv, isMultiEnv) => ({
304
303
  path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
305
304
  publicPath: isDev
306
305
  ? '/'
307
- : (buildEnv === 'prod' ? '#{PUBLIC_PATH_BASE}' : `https://static-mfe-${buildEnv}.autoguru.io/${buildEnv}/`),
306
+ : (buildEnv === 'prod' ? `#{PUBLIC_PATH_BASE}${config_1.getProjectName()}` : `https://static-mfe-${buildEnv}.autoguru.io/${config_1.getProjectName()}`),
308
307
  filename: `${fileMask}.js`,
309
308
  chunkFilename: `chunks/${fileMask}.js`,
310
309
  hashFunction: 'sha256',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "private": false,
5
5
  "description": "AutoGuru's development toolkit",
6
6
  "homepage": "https://github.com/autoguru-au/octane/tree/master/packages/gdu#readme",