fix: allow server actions on webapp url

This commit is contained in:
ShubhamPalriwala
2023-12-14 18:18:16 +05:30
parent 95ed9b87de
commit 5c037dab75

View File

@@ -109,9 +109,9 @@ const nextConfig = {
// set actions allowed origins
if (process.env.WEBAPP_URL) {
/* nextConfig.experimental.serverActions = {
nextConfig.experimental.serverActions = {
allowedOrigins: [process.env.WEBAPP_URL.replace(/https?:\/\//, "")],
}; */
};
nextConfig.images.remotePatterns.push({
protocol: "https",
hostname: getHostname(process.env.WEBAPP_URL),