This repository has been archived on 2023-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
imageify/next.config.js

32 lines
581 B
JavaScript
Raw Normal View History

2022-11-17 06:23:45 +00:00
const imageUrlParts = process.env.NEXT_PUBLIC_SITE_URL.split("://");
2022-11-17 06:47:31 +00:00
/** @type {import('next').NextConfig} */
2022-11-13 19:21:34 +00:00
const nextConfig = {
2022-11-14 00:08:16 +00:00
reactStrictMode: true,
2022-11-14 03:31:42 +00:00
output: "standalone",
2022-11-14 02:32:02 +00:00
swcMinify: true,
optimizeFonts: true,
2022-11-17 06:47:31 +00:00
experimental: {
optimizeCss: true,
},
2022-11-13 19:21:34 +00:00
2022-11-14 00:08:16 +00:00
images: {
remotePatterns: [
{
protocol: "http",
hostname: "localhost",
2022-11-17 06:23:45 +00:00
port: "3000",
2022-11-17 05:58:42 +00:00
pathname: "/api/files/**",
},
{
2022-11-17 06:23:45 +00:00
protocol: imageUrlParts[0],
hostname: imageUrlParts[1].split(":")[0],
port: "443",
2022-11-14 00:08:16 +00:00
pathname: "/api/files/**",
},
],
},
};
module.exports = nextConfig;