From 970f9474fbfdb7d5171d6f6e39d9652eaebcec51 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sat, 24 May 2025 18:51:11 +0800 Subject: [PATCH] feat: enhance SEO and mobile app meta properties Improves SEO optimization and mobile app integration by: - Adding ogSiteName meta property for better social sharing - Including apple-touch-icon for iOS device support - Updating documentation for Worker deployment configuration - Clarifying preview mode duration (5 minutes) in documentation --- app/app.vue | 6 ++++++ docs/configuration.md | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/app.vue b/app/app.vue index 4d4a7f4..f2897c7 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,10 +1,12 @@ diff --git a/docs/configuration.md b/docs/configuration.md index d6a4ddf..31b78d0 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -2,12 +2,18 @@ Sink provides some configuration options, which can be referred to in [.env.example](../.env.example). +> When using Worker deployment, please note that variables with the `NUXT_PUBLIC_` prefix need to be configured in Workers' **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**. + ## `NUXT_PUBLIC_PREVIEW_MODE` -Sets the site to demo mode, the generated links will expire after 24 hours, and the links cannot be edited or deleted. +> If you are using Worker deployment, this variable needs to be configured in **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**. + +Sets the site to demo mode, the generated links will expire after 5 minutes, and the links cannot be edited or deleted. ## `NUXT_PUBLIC_SLUG_DEFAULT_LENGTH` +> If you are using Worker deployment, this variable needs to be configured in **Settings** -> **Build** -> **Variables and Secrets** and **Settings** -> **Variables and Secrets**. + Sets the default length of the generated SLUG. ## `NUXT_REDIRECT_STATUS_CODE`