mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-08 06:41:45 -05:00
fix: docker deployment failed because of new nextjs config (#1688)
This commit is contained in:
@@ -8,9 +8,7 @@ const nextConfig = {
|
||||
assetPrefix: process.env.ASSET_PREFIX_URL || undefined,
|
||||
output: "standalone",
|
||||
experimental: {
|
||||
serverActions: {
|
||||
allowedOrigins: [process.env.WEBAPP_URL.replace(/https?:\/\//, "")],
|
||||
},
|
||||
serverActions: true,
|
||||
},
|
||||
transpilePackages: ["@formbricks/database", "@formbricks/ee", "@formbricks/ui", "@formbricks/lib"],
|
||||
images: {
|
||||
@@ -104,6 +102,13 @@ const nextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
// set actions allowed origins
|
||||
if (process.env.WEBAPP_URL) {
|
||||
nextConfig.experimental.serverActions = {
|
||||
allowedOrigins: [process.env.WEBAPP_URL.replace(/https?:\/\//, "")],
|
||||
};
|
||||
}
|
||||
|
||||
const sentryOptions = {
|
||||
// For all available options, see:
|
||||
// https://github.com/getsentry/sentry-webpack-plugin#options
|
||||
|
||||
Reference in New Issue
Block a user