If you like cheesy potatoes, but you’re like me and prefer to make everything from scratch vs. frozen potatoes, then this is your recipe!
Preheat the oven to 400 degrees F.
Wrap each potato in foil and place on a baking sheet. Poke holes into potatoes using a knife. Bake in the preheated oven until very tender and easily pierced with a knife, about 1 hour and 15 minutes.
Let potatoes cool to room temperature, at least 30 minutes. Unwrap. Cover with plastic wrap and refrigerate until completely chilled, 8 hours to overnight.
Preheat the oven to 425 degrees F. Grease a casserole dish, about 8x10" in size.
Shred potatoes into a large bowl using a cheese grater. Mince shallots to get 1/4 to 1/3 cup.
Add shallots in with the potatoes; season with salt, white pepper, and cayenne. Toss with two forks until well combined. Add cheddar cheese and mix well. Gently toss in sour cream until barely combined. Transfer mixture into the prepared baking dish, piling it up high, then patting it down very lightly.
Bake in the preheated oven until piping hot and top is browned, 30 to 35 minutes.