We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c997def commit 5864c3fCopy full SHA for 5864c3f
pages/api/image.js
@@ -1,8 +1,9 @@
1
-import rick from "buffer-loader!../../rick.jpg";
+// Image source: Sumatangwang via Tenor: https://tenor.com/bfLqf.gif
2
+import rick from "buffer-loader!../../rick.gif";
3
4
export default (req, res) => {
5
res.status(200);
- res.setHeader("Content-Type", "image/jpeg");
6
+ res.setHeader("Content-Type", "image/gif");
7
// Send the image buffer. There are many other ways to send images and other
8
// files. For example, you can create a buffer from a base64-encoded string
9
// of an image: https://stackoverflow.com/a/28440633/6451879
rick.gif
3.14 MB
rick.jpg
-46.6 KB
0 commit comments