We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7748bc2 commit 20d2b23Copy full SHA for 20d2b23
next.config.ts
@@ -3,6 +3,25 @@ import createNextIntlPlugin from "next-intl/plugin";
3
4
const withNextIntl = createNextIntlPlugin("./configs/i18n/request.ts");
5
6
-const nextConfig: NextConfig = {};
+const nextConfig: NextConfig = {
7
+ output: "standalone",
8
+ webpack: (
9
+ config,
10
+ {
11
+ buildId: _buildId,
12
+ dev,
13
+ isServer: _isServer,
14
+ defaultLoaders: _defaultLoaders,
15
+ nextRuntime: _nextRuntime,
16
+ webpack: _webpack
17
+ }
18
+ ) => {
19
+ if (config.cache && !dev) {
20
+ config.cache = Object.freeze({ type: "memory" });
21
22
+ // Important: return the modified config
23
+ return config;
24
25
+};
26
27
export default withNextIntl(nextConfig);
0 commit comments