Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** @type {import("next").NextConfig} */
- const config = {
- images: {
- domains: [new URL("/", process.env.BACKEND_URL).hostname],
- },
- output: "standalone",
- // For development mode in prod nginx does this
- rewrites: async () => [
- {
- source: "/uploads/:path*",
- destination: new URL("/uploads/:path*", process.env.BACKEND_URL).toString(),
- },
- ],
- poweredByHeader: false,
- experimental: {
- serverActions: {
- bodySizeLimit: "2000mb",
- },
- },
- }
- export default config
Advertisement
Add Comment
Please, Sign In to add comment