mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Define GITBOOK_URL as serverActions.allowedOrigins (#2911)
This commit is contained in:
@@ -25,6 +25,14 @@ const config = {
|
||||
dangerous: {
|
||||
enableCacheInterception: false,
|
||||
},
|
||||
|
||||
experimental: {
|
||||
serverActions: {
|
||||
allowedOrigins: process.env.GITBOOK_URL
|
||||
? [new URL(process.env.GITBOOK_URL).hostname]
|
||||
: [],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user