Export S3 mode in build process