next.config.ts 724 B

12345678910111213141516171819202122232425262728293031323334
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. reactStrictMode: true,
  4. eslint: {
  5. ignoreDuringBuilds: true,
  6. },
  7. typescript: {
  8. ignoreBuildErrors: false,
  9. },
  10. // Allow access to remote image placeholder.
  11. images: {
  12. remotePatterns: [
  13. {
  14. protocol: "https",
  15. hostname: "picsum.photos",
  16. port: "",
  17. pathname: "/**", // This allows any path under the hostname
  18. },
  19. ],
  20. },
  21. output: "standalone",
  22. transpilePackages: ["motion"],
  23. webpack: (config, { dev }) => {
  24. if (dev && process.env.DISABLE_HMR === "true") {
  25. config.watchOptions = {
  26. ignored: /.*/,
  27. };
  28. }
  29. return config;
  30. },
  31. };
  32. export default nextConfig;