I have done this while driving, with the fridge plugged in to the interior accessory port with no problem. But it sounds like you are planning on connecting directly to the battery terminals. Offhand, i cant recall the capacity of that battery, maybe 60 Amp hours? A compressor fridge small enough to fit in the frunk probably only pulls 3 amps, so it’s unlikely to drain the battery overnight. It’s also possible that your car will throw an error code the next morning, thinking that something is wrong with the battery. Let us know how it goes?