web: add support for switching release tracks

we make use of Cloudflare Pages Functions to redirect to the beta site
if a certain cookie is present. This ensures seamless switching between
release tracks.
This commit is contained in:
Abdullah Atta
2025-02-26 10:04:07 +05:00
committed by Abdullah Atta
parent efa73a1c32
commit 725f3c3522
9 changed files with 4435 additions and 2977 deletions

View File

@@ -384,7 +384,6 @@ export const strings = {
other: `v${version} has been released`
}),
readReleaseNotes: () => t`Read full release notes on Github`,
beta: () => t`BETA`,
settings: () => t`Settings`,
notLoggedIn: () => t`Not logged in`,
never: () => t`Never`,
@@ -2434,5 +2433,9 @@ Use this if changes from other devices are not appearing on this device. This wi
actionsForNotebook: (title: string) => t`Actions for notebook: ${title}`,
actionsForTag: (title: string) => t`Actions for tag: ${title}`,
recents: () => t`Recents`,
removeFromRecents: () => t`Remove from recents`
removeFromRecents: () => t`Remove from recents`,
releaseTrack: () => t`Release track`,
releaseTrackDesc: () => t`Select the release track for Notesnook.`,
stable: () => t`Stable`,
beta: () => t`Beta`
};