update env stuff

This commit is contained in:
Pas 2025-10-26 21:24:50 -06:00
parent ad15d41005
commit 8687d6da8c
3 changed files with 7 additions and 8 deletions

View file

@ -4,7 +4,7 @@ VITE_OPENSEARCH_ENABLED=false
# make sure the cors proxy url does NOT have a slash at the end
VITE_CORS_PROXY_URL=...
# make sure the m3u8 proxy url does NOT have a slash at the end. THIS IS A TEMPORARY PROXY. WILL SOON BE INEGRATED INTO THE CORS PROXY
# likewise
VITE_M3U8_PROXY_URL=...
# make sure the domain does NOT have a slash at the end

View file

@ -2,7 +2,7 @@ import {
APP_VERSION,
BACKEND_URL,
DISCORD_LINK,
// GITHUB_LINK,
GITHUB_LINK,
TWITTER_LINK,
} from "./constants";
@ -28,7 +28,7 @@ interface Config {
ALLOW_FEBBOX_KEY: boolean;
ALLOW_REAL_DEBRID_KEY: boolean;
SHOW_AD: boolean;
AD_CONTENT_URL: string;
AD_CONTENT_URL: string; // like <script src="https://umami.com/script.js"></script>
TRACK_SCRIPT: string;
BANNER_MESSAGE: string;
BANNER_ID: string;
@ -115,9 +115,9 @@ function getKey(key: keyof Config, defaultString?: string): string | null {
export function conf(): RuntimeConfig {
return {
APP_VERSION,
GITHUB_LINK: getKey("GITHUB_LINK", ""),
GITHUB_LINK: getKey("GITHUB_LINK", GITHUB_LINK),
DISCORD_LINK,
TWITTER_LINK,
TWITTER_LINK: getKey("TWITTER_LINK", TWITTER_LINK),
DMCA_EMAIL: getKey("DMCA_EMAIL"),
ONBOARDING_CHROME_EXTENSION_INSTALL_LINK: getKey(
"ONBOARDING_CHROME_EXTENSION_INSTALL_LINK",

View file

@ -1,7 +1,6 @@
export const APP_VERSION = import.meta.env.PACKAGE_VERSION;
export const DISCORD_LINK = "https://discord.gg/7z6znYgrTG";
// export const GITHUB_LINK = "https://github.com/p-stream/p-stream";
export const TWITTER_LINK = "https://twitter.com/SudoFlix";
export const GITHUB_LINK = "https://github.com/p-stream/p-stream";
export const TWITTER_LINK = "";
export const GA_ID = import.meta.env.VITE_GA_ID;
export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL;
// Do it clap??