fix: robots-txt location

This commit is contained in:
yanlong.wang 2025-03-10 14:07:52 +08:00
parent 101cb19dde
commit 0d6cf2b1d1
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -31,7 +31,7 @@ export class RobotsTxtService extends AsyncService {
async getCachedRobotTxt(origin: string) {
const digest = md5Hasher.hash(origin.toLowerCase());
const cacheLoc = `/robots-txt/${digest}`;
const cacheLoc = `robots-txt/${digest}`;
let buff;
buff = await this.firebaseStorageBucketControl.downloadFile(cacheLoc).catch(() => undefined);
if (buff) {