Skip to content

Commit

Permalink
reinstate
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbos committed Nov 30, 2023
1 parent dfc48b3 commit 227854d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/routes/(blank)/og/[show_number].jpg/+server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { dev } from '$app/environment';
import chrome from '@sparticuz/chromium';
import { readFile } from 'fs/promises';
import path from 'path';
import puppeteer, { Browser } from 'puppeteer-core';
const exePath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome';

Expand Down Expand Up @@ -48,18 +46,6 @@ export const config = {
};

export async function GET({ url, params }) {
const buf = await fetch(
'https://p201.p0.n0.cdn.getcloudapp.com/items/4guRB0vd/9dfc34a6-c197-4f10-b44d-e2c049824584.jpg?source=viewer&v=7dbdaa80953a2cf83f6b2caf6f5b5cea'
).then((x) => x.arrayBuffer());
return new Response(buf, {
status: 200,
headers: {
'Content-Type': 'image/jpeg',
// cache for 10 minutes, allow stale to be served for up for another 10 mins
'cache-control': 'public s-max-age=600, stale-while-revalidate=600'
}
});

const start = performance.now();
const qs = new URLSearchParams(url.search);
// const show = qs.get('show');
Expand Down

0 comments on commit 227854d

Please sign in to comment.