in src/export-backend-asset-handler/index.ts [162:180]
private createAuxiliaryFileAsset(): BucketDeployment | undefined {
const auxiliaryFilePath = path.join(
this.exportPath,
AMPLIFY_AUXILIARY_LAMBDAS,
);
if (fs.existsSync(auxiliaryFilePath)) {
const deployment = new BucketDeployment(
this.rootStack,
'auxiliary-lambdas',
{
destinationBucket: this.deploymentBucket,
sources: [Source.asset(auxiliaryFilePath)],
prune: false,
},
);
return deployment;
}
return;
}