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
|
@@ -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: [
|
|
60
|
-
defaultLocale:
|
|
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
|
|
302
|
+
var _a;
|
|
303
303
|
return ({
|
|
304
304
|
name: buildEnv,
|
|
305
305
|
output: {
|
|
306
306
|
path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
|
|
307
|
-
publicPath: isDev ? '/' : (
|
|
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',
|