next.config.js 447 B

12345678910111213141516171819202122232425
  1. /** @type {import('next').NextConfig} */
  2. const nextConfig = {
  3. images: {
  4. remotePatterns: [
  5. {
  6. protocol: "https",
  7. hostname: "images.unsplash.com"
  8. },
  9. {
  10. protocol: "https",
  11. hostname: "tailwindcss.com"
  12. }
  13. ]
  14. },
  15. async rewrites() {
  16. return [
  17. {
  18. source: "/api/:path*",
  19. destination: "http://localhost:3001/:path*"
  20. }
  21. ];
  22. }
  23. };
  24. module.exports = nextConfig;