diff --git a/README.md b/README.md index 14424b8..82860a3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/faqs.md b/docs/faqs.md index aa6cde5..159536b 100644 --- a/docs/faqs.md +++ b/docs/faqs.md @@ -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 don’t 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).