From 8bbd8bf856c1a37e30978535aa597b44434fdf62 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 17 Jan 2025 22:49:44 +0800 Subject: [PATCH] feat: add default value for VITE_WEB_URL and remove VITE_IMGPROXY_URL --- .github/workflows/build.yml | 1 - .github/workflows/nightly.yml | 1 - changelog/0.3.2.md | 10 +++++++++- packages/shared/src/env.ts | 3 +-- plugins/vite/html-inject.ts | 1 - types/vite.d.ts | 1 - 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6dbd260fc..bf836d1af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,6 @@ concurrency: env: VITE_WEB_URL: ${{ vars.VITE_WEB_URL }} VITE_API_URL: ${{ vars.VITE_API_URL }} - VITE_IMGPROXY_URL: ${{ vars.VITE_IMGPROXY_URL }} VITE_SENTRY_DSN: ${{ vars.VITE_SENTRY_DSN }} VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }} VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index bf713316f..68bea079e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -7,7 +7,6 @@ on: env: VITE_WEB_URL: ${{ vars.VITE_WEB_URL }} VITE_API_URL: ${{ vars.VITE_API_URL }} - VITE_IMGPROXY_URL: ${{ vars.VITE_IMGPROXY_URL }} VITE_SENTRY_DSN: ${{ vars.VITE_SENTRY_DSN }} VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }} VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }} diff --git a/changelog/0.3.2.md b/changelog/0.3.2.md index a04b37390..cbee991b3 100644 --- a/changelog/0.3.2.md +++ b/changelog/0.3.2.md @@ -2,4 +2,12 @@ ## New Features -- Protect your account logins and wallet operations with two-factor authentication (2FA). +- Added support for Two-Factor Authentication (2FA) for login and large transactions. + +## Improvements + +- Enhanced detection for translation needs and improved display of translated text. + +## Bug Fixes + +- Resolved an issue where some read marks were missed during fast scrolling. diff --git a/packages/shared/src/env.ts b/packages/shared/src/env.ts index bf75197d6..52fe04ac8 100644 --- a/packages/shared/src/env.ts +++ b/packages/shared/src/env.ts @@ -6,10 +6,9 @@ export const isDev = export const env = createEnv({ clientPrefix: "VITE_", client: { - VITE_WEB_URL: z.string().url(), + VITE_WEB_URL: z.string().url().default("https://app.follow.is"), VITE_API_URL: z.string(), VITE_DEV_PROXY: z.string().optional(), - VITE_IMGPROXY_URL: z.string().url(), VITE_SENTRY_DSN: z.string().optional(), VITE_INBOXES_EMAIL: z.string().default("@follow.re"), VITE_FIREBASE_CONFIG: z.string().optional(), diff --git a/plugins/vite/html-inject.ts b/plugins/vite/html-inject.ts index 6a3f33872..338f55ee2 100644 --- a/plugins/vite/html-inject.ts +++ b/plugins/vite/html-inject.ts @@ -20,7 +20,6 @@ export function htmlInjectPlugin(env: typeof EnvType): PluginOption { injectEnv(${JSON.stringify({ VITE_API_URL: env.VITE_API_URL, VITE_WEB_URL: env.VITE_WEB_URL, - VITE_IMGPROXY_URL: env.VITE_IMGPROXY_URL, })}) `, ) diff --git a/types/vite.d.ts b/types/vite.d.ts index 0f06bfe90..7b54e9949 100644 --- a/types/vite.d.ts +++ b/types/vite.d.ts @@ -3,7 +3,6 @@ interface ImportMetaEnv { VITE_WEB_URL: string VITE_API_URL: string - VITE_IMGPROXY_URL: string VITE_SENTRY_DSN: string VITE_OPENPANEL_CLIENT_ID: string VITE_OPENPANEL_API_URL: string