gdu 4.0.4 → 4.0.5

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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: Sets public asset paths
8
+
3
9
  ## 4.0.4
4
10
 
5
11
  ### Patch Changes
@@ -3,6 +3,7 @@ export declare const createNextJSConfig: (buildEnv: any) => {
3
3
  distDir: string;
4
4
  reactStrictMode: boolean;
5
5
  swcMinify: boolean;
6
+ assetPrefix: string;
6
7
  experimental: {
7
8
  concurrentFeatures: boolean;
8
9
  serverComponents: boolean;
@@ -31,6 +31,7 @@ const webpack_1 = require("webpack");
31
31
  const misc_1 = require("../lib/misc");
32
32
  const roots_1 = require("../lib/roots");
33
33
  const configs_1 = require("../utils/configs");
34
+ const config_1 = require("../lib/config");
34
35
  const withVanillaExtract = next_plugin_1.createVanillaExtractPlugin();
35
36
  exports.withTM = next_transpile_modules_1.default([
36
37
  '@autoguru/themes',
@@ -45,19 +46,21 @@ exports.withTM = next_transpile_modules_1.default([
45
46
  '@popperjs/core',
46
47
  ]);
47
48
  const createNextJSConfig = (buildEnv) => {
49
+ var _a;
48
50
  const isDev = !misc_1.isEnvProduction();
49
51
  const env = process.env.APP_ENV || (isDev ? 'dev' : buildEnv);
50
52
  return {
51
53
  distDir: `dist/${env}`,
52
54
  reactStrictMode: true,
53
55
  swcMinify: true,
56
+ assetPrefix: isDev ? null : (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath,
54
57
  experimental: {
55
58
  concurrentFeatures: false,
56
59
  serverComponents: false,
57
60
  },
58
61
  i18n: {
59
- locales: ["en"],
60
- defaultLocale: "en",
62
+ locales: ['en'],
63
+ defaultLocale: 'en',
61
64
  },
62
65
  typescript: {
63
66
  transpileOnly: true,
@@ -299,12 +299,12 @@ const baseOptions = (buildEnv, isMultiEnv) => ({
299
299
  });
300
300
  const { outputPath } = config_1.getGuruConfig();
301
301
  const makeWebpackConfig = (buildEnv, isMultiEnv) => {
302
- var _a, _b;
302
+ var _a;
303
303
  return ({
304
304
  name: buildEnv,
305
305
  output: {
306
306
  path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
307
- publicPath: isDev ? '/' : (_b = (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath) !== null && _b !== void 0 ? _b : '/',
307
+ publicPath: isDev ? '/' : (_a = `https://static-mfe-${buildEnv}.autoguru.io`) !== null && _a !== void 0 ? _a : '/',
308
308
  filename: `${fileMask}.js`,
309
309
  chunkFilename: `chunks/${fileMask}.js`,
310
310
  hashFunction: 'sha256',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
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",