fix: Server Actions errors on self-hosting because of missing allowedOrigins (#1621)

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
therecluse26
2023-11-27 05:45:29 -05:00
committed by GitHub
parent 652e0bc9c9
commit 8017e92a32

View File

@@ -8,7 +8,9 @@ const nextConfig = {
assetPrefix: process.env.ASSET_PREFIX_URL || undefined,
output: "standalone",
experimental: {
serverActions: true,
serverActions: {
allowedOrigins: [process.env.WEBAPP_URL.replace(/https?:\/\//, "")],
},
},
transpilePackages: ["@formbricks/database", "@formbricks/ee", "@formbricks/ui", "@formbricks/lib"],
images: {