Fix next.js configuration for serverActions

This commit is contained in:
Samy Pessé
2025-03-03 17:05:46 +01:00
parent 80237c34f9
commit 29dc7ccb1a
2 changed files with 6 additions and 6 deletions
+6
View File
@@ -6,6 +6,12 @@
const nextConfig = {
experimental: {
useCache: true,
serverActions: {
// Allow all origins for server actions
// as we serve content on a lot of domains
// Server actions are secured by the middleware.
allowedOrigins: ['*', '*.*', '*.*.*', '*.*.*.*', '*.*.*.*.*'],
},
},
env: {
-6
View File
@@ -25,12 +25,6 @@ const config = {
dangerous: {
enableCacheInterception: false,
},
experimental: {
serverActions: {
allowedOrigins: ['*', '*.*', '*.*.*', '*.*.*.*', '*.*.*.*.*'],
},
},
};
export default config;