/ next.config.js
next.config.js
1 const checkEnvVariables = require("./check-env-variables") 2 3 checkEnvVariables() 4 5 /** 6 * @type {import('next').NextConfig} 7 */ 8 const nextConfig = { 9 reactStrictMode: true, 10 logging: { 11 fetches: { 12 fullUrl: true, 13 }, 14 }, 15 eslint: { 16 ignoreDuringBuilds: true, 17 }, 18 typescript: { 19 ignoreBuildErrors: true, 20 }, 21 images: { 22 remotePatterns: [ 23 { 24 protocol: "http", 25 hostname: "localhost", 26 }, 27 { 28 protocol: "https", 29 hostname: "medusa-public-images.s3.eu-west-1.amazonaws.com", 30 }, 31 { 32 protocol: "https", 33 hostname: "medusa-server-testing.s3.amazonaws.com", 34 }, 35 { 36 protocol: "https", 37 hostname: "medusa-server-testing.s3.us-east-1.amazonaws.com", 38 }, 39 ], 40 }, 41 } 42 43 module.exports = nextConfig