mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
single quotes
This commit is contained in:
parent
9b88d48431
commit
5076ed4efb
10 changed files with 62 additions and 107 deletions
|
@ -1,5 +1,4 @@
|
|||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
import aws from "aws-sdk";
|
||||
|
||||
const { BUCKET, ACCESS_KEY, SECRET_KEY, ENDPOINT, REGION } = process.env;
|
||||
|
@ -40,7 +39,7 @@ export default async function (req: NextApiRequest, res: NextApiResponse) {
|
|||
}
|
||||
}
|
||||
res.setHeader(
|
||||
"Cache-Control",
|
||||
'Cache-Control',
|
||||
"public, s-maxage=10, stale-while-revalidate=59"
|
||||
);
|
||||
res.json({ object: objects, size: Number(size.toFixed(2)) });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue