Compare commits

...

1 Commits

Author SHA1 Message Date
ShubhamPalriwala
5c037dab75 fix: allow server actions on webapp url 2023-12-14 18:18:16 +05:30

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),