#Error 400 when app is deployed to Netlify

2 messages · Page 1 of 1 (latest)

reef plover
#

Hey,

I am getting 400 when trying to fetch any remote image.
Images work locally with npm run build && npn run start

Can someone help me debug and fix this error?

Images are hosted on Firestore

The link to an image that doesn't work:

https://sanalliset.netlify.app/_next/image?url=https%3A%2F%2Ffirebasestorage.googleapis.com%2Fv0%2Fb%2Fsanalliset-nextjs.appspot.com%2Fo%2Fproduct-images%252FKIITOS_KAIKESTA_HOPEA.jpg%3Falt%3Dmedia%26token%3D4bf57ffd-fe38-47cb-b4d8-6c84985297d9&w=1080&q=75

And heres my config nextjs config:

/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'sanalliset.fi',
pathname: '/'
},
{
hostname: 'firebasestorage.googleapis.com',
pathname: '/
'
},
{
hostname: 'sanalliset.netlify.app',
pathname: '/**'
},
]
},
};
export default nextConfig;

sand flowerBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)