Skip to content

Commit

Permalink
cleaned up:
Browse files Browse the repository at this point in the history
  • Loading branch information
dubwub committed Jan 23, 2025
1 parent 2c2944e commit 247f2ed
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ export async function loadDocsDefinitionFromS3({
try {
const cleanDomain = domain.replace(/^https?:\/\//, "");
const dbDocsDefUrl = `${docsDefinitionUrl}/${cleanDomain}.json`;
console.log("dbDocsDefUrl", dbDocsDefUrl);

const signedUrl = getSignedUrl({
url: dbDocsDefUrl,
privateKey: process.env.CLOUDFRONT_PRIVATE_KEY || "",
keyPairId: process.env.CLOUDFRONT_KEY_GROUP_ID || "",
keyPairId: process.env.CLOUDFRONT_KEY_PAIR_ID || "",

Check failure on line 17 in packages/fern-docs/bundle/src/server/loadDocsDefinitionFromS3.ts

View workflow job for this annotation

GitHub Actions / lint

CLOUDFRONT_KEY_PAIR_ID is not listed as a dependency in the root turbo.json or workspace () turbo.json
dateLessThan: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30).toString(),
});
const response = await fetch(dbDocsDefUrl);
const response = await fetch(signedUrl);
if (response.ok) {
const json = await response.json();
return json as FdrAPI.docs.v2.read.LoadDocsForUrlResponse;
Expand Down

0 comments on commit 247f2ed

Please sign in to comment.