53 lines
1006 B
JavaScript
53 lines
1006 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
// https://stackoverflow.com/questions/76164057/next-js-hostname-not-configured-under-images-in-next-config-js-even-though-remot
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/backend/:path*',
|
|
destination: `http://192.168.50.107:5580/:path*`,
|
|
},
|
|
{
|
|
source: '/strapi/:path*',
|
|
destination: `http://192.168.50.107:1337/:path*`,
|
|
}
|
|
]
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "ih1.redbubble.net",
|
|
port: "",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "localhost",
|
|
port: "1337",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "localhost",
|
|
port: "5080",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "api.kevosattire.com",
|
|
port: "",
|
|
pathname: "/**",
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "192.168.50.107",
|
|
port: "1337",
|
|
pathname: "/**",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|