gdu 4.0.10 → 4.0.11

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.11
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: Updates public paths
8
+
3
9
  ## 4.0.10
4
10
 
5
11
  ### Patch Changes
@@ -4,10 +4,6 @@ export declare const createNextJSConfig: (buildEnv: any) => {
4
4
  reactStrictMode: boolean;
5
5
  swcMinify: boolean;
6
6
  assetPrefix: string;
7
- experimental: {
8
- concurrentFeatures: boolean;
9
- serverComponents: boolean;
10
- };
11
7
  i18n: {
12
8
  locales: string[];
13
9
  defaultLocale: string;
@@ -46,19 +46,15 @@ exports.withTM = next_transpile_modules_1.default([
46
46
  '@popperjs/core',
47
47
  ]);
48
48
  const createNextJSConfig = (buildEnv) => {
49
- var _a;
49
+ var _a, _b;
50
50
  const isDev = !misc_1.isEnvProduction();
51
51
  const env = process.env.APP_ENV || (isDev ? 'dev' : buildEnv);
52
- const assetPrefix = isDev ? '' : (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath;
52
+ const assetPrefix = isDev ? '' : (_b = (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath) !== null && _b !== void 0 ? _b : '';
53
53
  return {
54
- distDir: `dist/${env}/${assetPrefix}`,
54
+ distDir: `dist/${env}`,
55
55
  reactStrictMode: true,
56
56
  swcMinify: true,
57
57
  assetPrefix,
58
- experimental: {
59
- concurrentFeatures: false,
60
- serverComponents: false,
61
- },
62
58
  i18n: {
63
59
  locales: ['en'],
64
60
  defaultLocale: 'en',
@@ -303,7 +303,9 @@ const makeWebpackConfig = (buildEnv, isMultiEnv) => ({
303
303
  path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
304
304
  publicPath: isDev
305
305
  ? '/'
306
- : (buildEnv === 'prod' ? `#{PUBLIC_PATH_BASE}/${config_1.getProjectFolderName()}/` : `https://static-mfe-${buildEnv}.autoguru.io/${config_1.getProjectFolderName()}/`),
306
+ : buildEnv === 'prod'
307
+ ? `#{PUBLIC_PATH_BASE}/${config_1.getProjectFolderName()}/`
308
+ : `https://static-mfe-${buildEnv}.autoguru.io/${config_1.getProjectFolderName()}/`,
307
309
  filename: `${fileMask}.js`,
308
310
  chunkFilename: `chunks/${fileMask}.js`,
309
311
  hashFunction: 'sha256',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.0.10",
3
+ "version": "4.0.11",
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",