Skip to content

Commit 9549de0

Browse files
committed
update:解密支持vercel
1 parent a82a2a8 commit 9549de0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/decoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export default (fastify, options, done) => {
1919
.send({error: `Text content exceeds the maximum size of ${options.MAX_TEXT_SIZE / 1024} KB`});
2020
}
2121

22-
const authFilePath = path.join(options.rootDir, 'nomedia.txt');
22+
const authFilePath = path.join(options.rootDir, 'public/nomedia.txt');
2323

2424
// 检查文件是否存在
2525
if (!existsSync(authFilePath)) {
26-
return reply.status(404).send({error: 'nomedia.txt file not found'});
26+
return reply.status(404).send({error: 'public/nomedia.txt file not found'});
2727
}
2828
try {
2929
const local_auto_code = readFileSync(authFilePath, 'utf-8').trim();
File renamed without changes.

0 commit comments

Comments
 (0)