Skip to content

Commit

Permalink
updating backend host instead of domain
Browse files Browse the repository at this point in the history
  • Loading branch information
azeddine-hmd committed Aug 31, 2024
1 parent 3fe0af8 commit 109b6ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ const nextConfig = {
reactStrictMode: false,
images: {
remotePatterns: [
{
hostname: process.env.BACKEND_DOMAIN,
protocol: process.env.BACKEND_PROTOCOL,
},
{
hostname: "cdn.discordapp.com",
protocol: "https",
Expand All @@ -23,6 +19,10 @@ const nextConfig = {
hostname: "media.discordapp.net",
protocol: "https",
},
(process.env.NODE_ENV === "production") ? {
hostname: process.env.BACKEND_HOST,
protocol: process.env.BACKEND_PROTOCOL,
} : undefined,
],
},
productionBrowserSourceMaps: process.env.NODE_ENV === "development",
Expand Down

0 comments on commit 109b6ce

Please sign in to comment.