mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Fix next.js configuration for serverActions
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -25,12 +25,6 @@ const config = {
|
||||
dangerous: {
|
||||
enableCacheInterception: false,
|
||||
},
|
||||
|
||||
experimental: {
|
||||
serverActions: {
|
||||
allowedOrigins: ['*', '*.*', '*.*.*', '*.*.*.*', '*.*.*.*.*'],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user