Partition table ignored for release environment

Hi!
I have a working dev environment, i wanted to add a release environment.
Flashing to the device a new app version (with ota) i get an MD5 error with the partition table.
prompting me to look into sdkconfig for both envs.

pio.ini

[env]
platform = espressif32
board = esp-wrover-kit
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder 
board_build.partitions = partition_table.csv

build_flags =
    -D CONFIG_SPIRAM_CACHE_WORKAROUND
    -D SOFTWARE_VERSION=10
    -D HARDWARE_VERSION=3
    
upload_port = /dev/ttyUSB*
monitor_port = /dev/ttyUSB*

[env:selectionDev]
build_type = debug
build_flags = 
    ${env.build_flags}
    -D DEV_MODE

[env:selectionProd]
build_type = release
build_flags = 
    ${env.build_flags}

Working Dev sdk (only partition area):

#
# Partition Table
#
# CONFIG_PARTITION_TABLE_SINGLE_APP is not set
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_table.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions_table.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x9000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table

auto generated config for release:


#
# Partition Table
#
CONFIG_PARTITION_TABLE_SINGLE_APP=y
# CONFIG_PARTITION_TABLE_TWO_OTA is not set
# CONFIG_PARTITION_TABLE_CUSTOM is not set
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv"
CONFIG_PARTITION_TABLE_OFFSET=0x8000
CONFIG_PARTITION_TABLE_MD5=y
# end of Partition Table

The problem is obvious, the release does not have the partition table or the correct offset in it. Why though?

For ESP-IDF + PlatformIO, you always had to set the partition table twice – once in the platformio.ini, once in the menuconfig, each environment.

Ah ok, i didn’t know this was required, thanks!