Compile client without server code

I’m planning on building a game that has dedicated servers hosted by us and therefore not planning on shipping the server code with the game.

As far as I can tell exporting a client currently also includes all of the code and functionality from the dedicated server also. I don’t want to expose any of the back-end server logic which interfaces with the database API.

Is there a way to to prevent blueprints behind the “isDedicatedServer” check from being compiled?