Codebase of the beetrootpaul.com website
nvm use
npm installnpm run dev -- --opennpm run build
npm run preview -- --opennpm testor to update the reference screenshots:
npm test -- --update- Go to
src/lib/portfiolio_entries.tsand edit the URL (might occur more than once). - Build the static version of the app.
- Commit and push to GitHub.
First, you might see "invalid source" in the correctly working fslightbox if the URL domain is youtube.com. The supported format is either www.youtube.com or youtu.be.
Then, the corrected URL makes the fslightbox not open for any of
the YT videos on the page. This happens when the URL does not match
an expected pattern. Shorts have a format of https://youtube.com/shorts/<video_id>. Is is not supported. The workaroung is
to use a regular video short URL and just re-use the ID:
https://youtu.be/<video_id>.
- Prettier options: https://prettier.io/docs/options
- website: https://fslightbox.com/javascript
- creator: Piotr Zdziarski
- license: The MIT License