I did go to the same uni as my (then) partner and it worked out reasonably well for us, to be honest - i think it being covid in our first year probably made a difference as we didn't have an opportunity to really do freshers etc. so there was less we were "missing out" on. I think possibly it disincentivised me from prioritising friendships at uni which i'd have liked to have to done more - since we had each other around all the time I maybe didn't try to maintain friendships as much as I maybe otherwise would've done. We had been together for 2 years prior to going to the same university, and had history as friends before dating.
We lived in the same student accommodation building but different flats in first year and then in the same house but we had our own rooms in 2nd year. I think those were some good boundaries to make sure we both had some space and also gave us some breathing room for if anything had gone wrong (thankfully it didn't!) we broke up between 2nd and 3rd year when I left to do a placement year and she stayed to complete her final year. We've remained good friends and don't regret going to uni together! In lots of ways it was nice, really.
I think the main things I would keep in mind are -
Have you been together a long time already (ideally 2+ years, but definitely at least a full year...) and have you got experience resolving situations - i.e. you've argued and made up on several occasions and you don't hold previous issues against each other/dredge up old problems?
Do you think if you were to break up, you would both manage that situation calmly, without wanting to hurt each other - you would have each other's best interests in mind even if you fell out of love? Often you can have some kind of indication of that, just dependent on the sorts of people you are, and the nature of your relationship. If you're the types to have blow-out arguments (or ice each other out for days without talking it through properly!) you might have a feeling it's more likely to end badly.
Have some other options - apply for other unis. Don't rely on this being the be-all and end-all. And make sure you aren't settling for somewhere you like less for your partner! Me and my ex didn't know for sure we were going to the same uni until results day and even though it was anxiety-inducing at times I think it helped us both focus on the universities for their own merits without worrying about each other.
...and make sure to maintain your space and personal lives - try to not live in each others' pockets - have some friends that are separate - try and do things without each other from time to time. Don't rush into living together and have a contingency plan for if you do break up while living together(!)