We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06521b commit 40130dfCopy full SHA for 40130df
src/modules/cos/index.ts
@@ -617,6 +617,7 @@ export default class Cos {
617
const dirToUploadPath: string | undefined = inputs.code?.src ?? inputs.code?.root;
618
const uploadDict: CosUploadInputs = {
619
bucket: inputs.bucket,
620
+ keyPrefix: inputs.keyPrefix || '/',
621
replace: inputs.replace!,
622
};
623
if (fs.lstatSync(dirToUploadPath!).isDirectory()) {
src/modules/cos/interface.ts
@@ -177,6 +177,7 @@ export interface CosUploadInputs {
177
export interface CosWebsiteInputs extends CosSetWebsiteInputs {
178
bucket?: string;
179
force?: boolean;
180
+ keyPrefix?: string;
181
}
182
183
export interface CosDeployInputs
0 commit comments