Heat waves aren't actually a death sentence for growing food - it's more that you need to pick the right moment and the right crops rather than give up entirely. I've had decent success growing cauliflower and broccoli by starting them later in summer so they mature in cooler autumn weather instead of trying to push them through peak heat. The thing most people don't realize is that these cool-season crops bolt or get stressed in sustained high temperatures, but if you time it so they're heading toward harvest as things cool down in September and October, they do fine.
What I've learned works better is treating your garden like it has two seasons now instead of one main growing period. Summer is for the heat-lovers - tomatoes, peppers, beans, courgettes, all that stuff thrives and needs minimal fussing. Then come late July, start your second wave of seeds for the autumn harvest. Cauliflower, lettuce, carrots, and leafy greens will grow properly when daytime temperatures drop below 25-28°C consistently. You're not swapping what you grow so much as shifting when you grow it.
The other factor nobody mentions enough is water and shade. Even heat-tolerant crops struggle if the soil dries out completely or if they're baked all day. Mulching heavily keeps moisture in, and even a bit of afternoon shade from taller plants or cloth can help. Most veg will still grow, but you're managing conditions more actively than you might've needed to a few years back.