From 914938562c391616ed5a53cc8cb12caf48aa0c32 Mon Sep 17 00:00:00 2001 From: Donkoko Date: Thu, 1 Aug 2024 13:11:48 +0300 Subject: [PATCH] fixing .env.example to show correct shortner url --- .env.example | 3 ++- docs/url-shortener.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 43ba4ab37..7f80df44d 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,8 @@ SERVER_URL="http://localhost:3000" # Used for shortening URLs of QR codes. Optional # If present, the QR code will be generated with a shortened URL -# URL_SHORTENER="https://hey.lo/" +# Should not include the protocol (http/https) or a trailing slash +# URL_SHORTENER="eam.sh" APP_NAME="Shelf" diff --git a/docs/url-shortener.md b/docs/url-shortener.md index bb755fe6d..d03221f1e 100644 --- a/docs/url-shortener.md +++ b/docs/url-shortener.md @@ -8,6 +8,6 @@ The redirection is handled via the `urlShortener` middleware. Using the shortener is super easy. -1. Add an env variable with your shortner domain: `URL_SHORTENER="https://hey.lo/"`. You can refer to `.env.example` for further example +1. Add an env variable with your shortner domain: `URL_SHORTENER="hey.lo"`. You can refer to `.env.example` for further example. The domain should not include the protocol (http/https) or a trailing slash 2. Make sure you point your short domain to your application server 3. Enjoy