If you’re wanting your site to only be available to users of the VPN, then you join your server to that VPN. I suspect most consumer VPNs don’t allow client-to-client connections, so you’d have to check with the provider.
If you want to block VPN users then you’ll need to get the egress IP address ranges and then block them in the server firewall. Getting that information is unlikely as it’s not in providers interest to share them.
Typically such websites are hosted behind a firewall which only allows traffic from certain IP addresses. To get an allowed address you have to use the company’s internal network (intranet) or connect to their VPN. You need to be talking to your company’s IT department about how this site should be set up.
I don’t really know the specifics because I’m not into Devops myself, we have a team at the company that handles all this.
I DO know that it involves setting up firewall rules to deny connections that don’t come from a specific IP / range of IPs, and the app itself doesn’t really do anything special to the traffic.
That doesn’t sound that unusual but tbh I am not a network engineer. I can imagine bigger VPNs have several egress points but I wouldn’t be surprised for smaller or free VPNs to have a single IP they route through.