The default firmware for the ESP32 is setup to use an FAT files system on the last 1 Mb of the flash memory. To use and SPI SD card, you would need to do a custom build of the firmware, and turn of the FlashFS option. You can use SPI for other devices with the stock firmware
Would need to be changed to:
and the firmware rebuilt. Then an external SD card could be used.