Skip to content

Commit

Permalink
Test out vercel redirects for images
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Dec 8, 2023
1 parent 353080a commit 75f52ac
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,18 @@
"source": "/assets/:path*",
"destination": "https://discover.stanford.edu/assets/:path*"
}
],
"redirects": [
{
"source": "/_next/image",
"destination": "/_next/image?url=:url*",
"has": [
{
"type": "query",
"key": "url",
"value": "(?<url>.*[jpg|png|jpeg|gif]).*"
}
]
}
]
}
}

0 comments on commit 75f52ac

Please sign in to comment.