doc: update docs to reflect the new feature.

This commit is contained in:
ZL Asica 2024-12-02 20:22:45 -06:00
parent cd7e3022d5
commit e51e912972
No known key found for this signature in database
GPG key ID: 5B1ED5BE09CE4C01
2 changed files with 11 additions and 0 deletions

View file

@ -38,6 +38,7 @@
- **Customizable Slug:** Support for personalized slugs.
- **🪄 AI Slug:** Leverage AI to generate slugs.
- **Link Expiration:** Set expiration dates for your links.
- **Switch between case sensitivity:** Toggle between case sensitivity for slugs.
## 🪧 Demo

View file

@ -32,3 +32,13 @@ Of course. Please set the environment variable `NUXT_HOME_URL` to your blog or o
## 5. Why can't I see statistics after deploying with NuxtHub?
NuxtHub's ANALYTICS points to its dataset, you need to set the `NUXT_DATASET` environment variable to point to the same dataset.
## 6. Why are links always case-insensitive?
This is a feature of Sink. By default, we automatically convert all links to lowercase to avoid case-sensitive issues and improve usability. This ensures users dont encounter errors due to accidental capitalization differences.
However, you can disable this feature by setting the `NUXT_CASE_SENSITIVE` environment variable to `true`.
### What happens when `NUXT_CASE_SENSITIVE` is `true`?
Newly generated links will be case-sensitive, treating `MyLink` and `mylink` as distinct. Randomly generated slugs will include both uppercase and lowercase characters, offering a larger pool of unique combinations (but not user-friendly that why we default to non-case-sensitive).