@fecommunity/reactpress-toolkit 4.0.0-beta.14 → 4.0.0-beta.15
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.
|
@@ -41,9 +41,12 @@ function applyThemeWebpackResolve(config, appDir) {
|
|
|
41
41
|
* Pass overrides to extend (your `webpack` runs after the supports-color alias).
|
|
42
42
|
*/
|
|
43
43
|
function createReactPressNextConfig(overrides = {}) {
|
|
44
|
-
const { webpack: userWebpack, eslint, transpilePackages, ...rest } = overrides;
|
|
44
|
+
const { webpack: userWebpack, eslint, transpilePackages, compress, ...rest } = overrides;
|
|
45
45
|
return {
|
|
46
46
|
reactStrictMode: true,
|
|
47
|
+
// Themes rewrite `/api` to Nest. Next's compress middleware decompresses upstream
|
|
48
|
+
// bodies but can still emit `Content-Encoding: br`, breaking admin fetch (ERR_CONTENT_DECODING_FAILED).
|
|
49
|
+
compress: compress ?? false,
|
|
47
50
|
transpilePackages: ['@fecommunity/reactpress-toolkit', ...(transpilePackages ?? [])],
|
|
48
51
|
eslint: {
|
|
49
52
|
ignoreDuringBuilds: true,
|