/** @type {import('next').NextConfig} */ const nextConfig = { distDir: process.env.NEXT_DIST_DIR || ".next", output: "standalone", images: { remotePatterns: [ { protocol: "https", hostname: "refine.ams3.cdn.digitaloceanspaces.com", }, ], }, turbopack: { rules: { "*.svg": { loaders: ["@svgr/webpack"], as: "*.js", }, }, }, async headers() { return [ { source: "/three-dimensional/zjb/v29/models/:path*", headers: [ { key: "Cache-Control", value: "public, max-age=2592000, immutable", }, ], }, { source: "/three-dimensional/zjb/v29/vendor/:path*", headers: [ { key: "Cache-Control", value: "public, max-age=2592000, immutable", }, ], }, { source: "/three-dimensional/zjb/v29/water-network-v28.json", headers: [ { key: "Cache-Control", value: "public, max-age=2592000, immutable", }, ], }, ]; }, webpack(config) { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], }); return config; }, }; export default nextConfig;