Hi guys is it at all po…

less than 1 minute read

Hi guys, is it at all possible to use proxy.conf.json to set up proxies in production?

Responses:

How do you start your server in production?

What are you trying to serve?

I’m trying to serve a nextJS frontend with an express backend that proxies certain routes (rss, etc). I figured it’s better than hacking it into nextJS

Nx does not really provide opinions for that in production, as this wildly varies per organization.

If you already have an express backend, you can use http-proxy-middleware and feed it your proxy config. This is what Nx uses behind the scenes

So it’d require a custom server for the nextJS side?

Or am i being a fool?

Yes, that’s what I would do

Updated: