tidbyt / pixlet

Build apps for pixel-based displays ✨
https://tidbyt.com
Apache License 2.0
774 stars 109 forks source link

Get "pixlet serve" to serve a webp image instead of full web page #1004

Closed jdesai61 closed 9 months ago

jdesai61 commented 9 months ago

Currently, the "pixlet serve" command server a web page that include load/save config, among other things. Is there any way to let pixlet serve only the webp file? The reason for the ask is because the HDK seems to expect a URL that only servers a webp.

jdesai61 commented 9 months ago

I think I figured it out, I need to use:

BASE_URL_OF_MY_PIXLET_SERVER/api/v1/preview.webp