mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-08 08:50:25 -06:00
fix: update next-config remotePatterns to work with http (#1761)
This commit is contained in:
@@ -4,8 +4,9 @@ import "@formbricks/lib/env.mjs";
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
|
||||
function removeHttps(url) {
|
||||
return url.replace('https://', '');
|
||||
function getHostname(url) {
|
||||
const urlObj = new URL(url);
|
||||
return urlObj.hostname;
|
||||
}
|
||||
|
||||
const nextConfig = {
|
||||
@@ -39,7 +40,7 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: `${removeHttps(process.env.WEBAPP_URL)}`,
|
||||
hostname: `${getHostname(process.env.WEBAPP_URL)}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user