This might depend somewhat on the field and certainly on what you intend to do as a career. It is field dependent since different fields place a somewhat different balance on teaching v research.
But if you seek a career in an R1 or R2 then you want to focus primarily on showing good research "chops". For those seeking to (mostly) teach at a liberal arts college then teaching will be looked at closely.
But you also need to think about the number of jobs available and their specific requirements. Look in professional publications, for example, to get an idea of what is being looked for.
At some colleges and universities, research into the specific pedagogy of a field might be honored. Other places it would be discounted. Moreover, it is easier for a senior faculty member to focus on "out of the mainstream" research than it is for someone on the tenure track.
And also note that it is probably easier to move from an R1 (say) to a teaching oriented college than it is to move in the other direction, though getting hired and then tenure at an R1 is pretty tough. Very hard in some fields at the moment.
Finally, if you can manage to do what you love, then you will be happier overall, so think long term about goals and how best to achieve them.