diff --git a/packages/gitbook-v2/open-next.config.ts b/packages/gitbook-v2/open-next.config.ts index e0b7cdf5d..d3c71a8a2 100644 --- a/packages/gitbook-v2/open-next.config.ts +++ b/packages/gitbook-v2/open-next.config.ts @@ -28,9 +28,7 @@ const config = { experimental: { serverActions: { - allowedOrigins: process.env.GITBOOK_URL - ? [new URL(process.env.GITBOOK_URL).hostname] - : [], + allowedOrigins: ['*'], }, }, };