🎉 This is a constantly updating page of new updates for this project. Also available at What's new? #325.
Other than password protected routes, and raw file link redirect API, all other API routes are using Vercel edge caching mechanisms (fresh for 60 seconds):
Cache-Control: max-age=0, s-maxage=60, stale-while-revalidate
Raw file link redirect API changed from
/api/raw?path=<file>, no cache applied.
Raw file link redirect API accepts the URL parameter
&odpt=<hashed_token>for password authentication.
🚀 A few performance boosts:
- Thumbnails are now requested separately after files are initially loaded. This improves file load performance as we are requesting fewer items from OneDrive's API on initial request. (However your thumbnails may load slower for half a second or so.)
- Edge caching is now in use: we are now leveraging Vercel's edge function caching and
stale-while-revalidateoptions, so you should experience extremely faster load speed for all API routes.) Cache is valid for 60 seconds on the edge. Check: 🚀 Edge caching #407.
👨💻 Code highlighting: we dropped dependency
Prism.js, syntax highlighting is now performed by
highlight.jsunder-the-hood. Support for different languages are imported asynchronous (so you may see a slight delay before the code is actually highlighted).
🎸 Audio preview (music player) now shows the thumbnail of the album if available.
🇨🇳/🇬🇧 - Project is i18n-ed, enjoy. 🥱
.flvvideos are now supported.
🔗 Links copied to your clipboards are now formatted in a human-readable way.
- before: /api?path=/%F0%9F%8E%BB%20Genshin%20playlist/%E3%80%90%E5%8E%9F%E7%A5%9E%E3%80%91%E8%83%A1%E6%A1%83%EF%BC%9A%E5%95%8A%E5%AF%B9%E5%AF%B9%E5%AF%B9%E5%AF%B9.mp4&raw=true + after: /api?path=/🎻%20Genshin%20playlist/【原神】胡桃：啊对对对对.mp4&raw=true
📅 You can now customise your date formats in
💠 Layout switching is now supported! Grid layouts with thumbnail previews are now available.
🗑 We have dropped usage of
react-viewerwhich is unperformant and causes high CPU usages.
🎥 We have dropped usage of
react-playerand is now using
react-audio-playeras video and audio players respectively.
🎇 We added thumbnail rendering for videos, see the difference:
💬 We added support for subtitles (closed captions), which are auto referenced if a valid subtitle file with the same name as the video and in
.vttwebvtt format is present.
⚡️ We have migrated from
pnpmas project's package manager for faster build speed and more efficient cache usage. You may need to update your Vercel's build commands:
- Build command:
- Install command:
- Build command:
- ❗Breaking - Config files changed from
.config.js, relevant comments added. You can now move
userPrincipleNameto Vercel's environment variables (to avoid exposing your email address publicly).
- CORS headers are now present in
/api/rawroutes for OneDrive raw file links.
- 🚫 Removed support for proxied download because of Vercel restrictions: Proxied download not working - 无法使用代理下载 #251.
- 🚀 We now no longer need extra deployment tokens/secret setups: New version update: No extra deployment setup is required anymore! #215