diff --git a/website/README.md b/website/README.md index 1e9734aa3..fd9e26d61 100644 --- a/website/README.md +++ b/website/README.md @@ -45,5 +45,5 @@ PUBLIC_URL='https://my-domain.com' REACT_APP_BACKEND_URL='http://api.my-domain.c ## Additional options -- `REACT_APP_DISABLE_FEATURES_CARDS=1` - Allows disabling Features cards -- `REACT_APP_DISABLE_ONE_CLICK_LINK=1` - Allows disabling "One-click link" support +- `YOPASS_DISABLE_FEATURES_CARDS=1` - Allows disabling Features cards +- `YOPASS_DISABLE_ONE_CLICK_LINK=1` - Allows disabling "One-click link" support diff --git a/website/src/App.tsx b/website/src/App.tsx index 29a98a842..c434182e5 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -18,7 +18,7 @@ const App = () => { }); } - const features = process.env.REACT_APP_DISABLE_FEATURES_CARDS !== '1'; + const features = process.env.YOPASS_DISABLE_FEATURES_CARDS !== '1'; return ( diff --git a/website/src/Routing.tsx b/website/src/Routing.tsx index 25d5360de..f53bdee48 100644 --- a/website/src/Routing.tsx +++ b/website/src/Routing.tsx @@ -5,7 +5,7 @@ import DisplaySecret from './displaySecret/DisplaySecret'; import Upload from './createSecret/Upload'; export const Routing = () => { - const oneClickLink = process.env.REACT_APP_DISABLE_ONE_CLICK_LINK !== '1'; + const oneClickLink = process.env.YOPASS_DISABLE_ONE_CLICK_LINK !== '1'; return ( } /> diff --git a/website/src/displaySecret/Result.tsx b/website/src/displaySecret/Result.tsx index 93c470596..fcc0fd59f 100644 --- a/website/src/displaySecret/Result.tsx +++ b/website/src/displaySecret/Result.tsx @@ -26,7 +26,7 @@ const Result = ({ uuid, password, prefix, customPassword }: ResultProps) => { `${window.location.protocol}//${window.location.host}`) + `/#/${prefix}`; const short = `${base}/${uuid}`; const full = `${short}/${password}`; - const oneClickLink = process.env.REACT_APP_DISABLE_ONE_CLICK_LINK !== '1'; + const oneClickLink = process.env.YOPASS_DISABLE_ONE_CLICK_LINK !== '1'; const { t } = useTranslation(); return ( diff --git a/website/vite.config.ts b/website/vite.config.ts index 297b5efb4..35407798e 100644 --- a/website/vite.config.ts +++ b/website/vite.config.ts @@ -28,6 +28,8 @@ export default defineConfig(() => { REACT_APP_FALLBACK_LANGUAGE: process.env.REACT_APP_FALLBACK_LANGUAGE, START_SERVER_AND_TEST_INSECURE: process.env.START_SERVER_AND_TEST_INSECURE, + YOPASS_DISABLE_FEATURES_CARDS: process.env.YOPASS_DISABLE_FEATURES_CARDS, + YOPASS_DISABLE_ONE_CLICK_LINK: process.env.YOPASS_DISABLE_ONE_CLICK_LINK, }, }, server: {