Guest User

next config

a guest
Sep 23rd, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. /** @type {import("next").NextConfig} */
  2. const config = {
  3. images: {
  4. domains: [new URL("/", process.env.BACKEND_URL).hostname],
  5. },
  6. output: "standalone",
  7. // For development mode in prod nginx does this
  8. rewrites: async () => [
  9. {
  10. source: "/uploads/:path*",
  11. destination: new URL("/uploads/:path*", process.env.BACKEND_URL).toString(),
  12. },
  13. ],
  14. poweredByHeader: false,
  15. experimental: {
  16. serverActions: {
  17. bodySizeLimit: "2000mb",
  18. },
  19. },
  20. }
  21.  
  22. export default config
  23.  
Advertisement
Add Comment
Please, Sign In to add comment