Tunable interplay between superconductivity and correlations in nanoscopic heterostructures