Skip to content

Commit

Permalink
refactor broke something, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawatermelo committed Oct 27, 2024
1 parent 753ecdd commit 7704c84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/api/background.svg/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ let WIDTH_HEADERS = ['Width', 'Viewport-Width', 'Sec-CH-Width', 'Sec-CH-Viewport
let HEIGHT_HEADERS = ['Sec-CH-Viewport-Height'];
let MOBILE_INDICATORS = ['mobile', 'android', 'iphone'];

export default async ({ request }: { request: Request }) => {
export const prerender = false;

export const GET = async ({ request }: { request: Request }) => {
// Try detect viewport height
let width = 1920;

Expand Down

0 comments on commit 7704c84

Please sign in to comment.