[playground] Force nextjs to use experimental react
These experimental features aren't used by the playground, but turning it on forces nextjs to use experimental react which has the useMemoCache hook.
Sathya Gunasekaran committed
Oct 23, 2023 at 15:41 UTC
1138ef00e3c92acab88c6aa747f981c74e751630
1 file changed
+6
compiler/apps/playground/next.config.js
+6
@@ -16,6 +16,12 @@ const nextConfig = {
16
17
return config;
18
},
19
+ // These aren't used by the playground, but turning it on forces nextjs to use
20
+ // experimental react which has the useMemoCache hook.
21
+ experimental: {
22
+ serverActions: true,
23
+ ppr: true,
24
+ },
25
};
26
27
module.exports = nextConfig;