shared.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export const appName = '3x-ui';
  2. export const appTagline = 'Advanced web panel for managing Xray-core servers';
  3. export const docsRoute = '/docs';
  4. export const docsImageRoute = '/og/docs';
  5. export const docsContentRoute = '/llms.mdx/docs';
  6. // The 3x-ui product repository — used for the navbar GitHub link,
  7. // build-time star/release stats, and install commands.
  8. export const productRepo = {
  9. user: 'MHSanaei',
  10. repo: '3x-ui',
  11. branch: 'main',
  12. };
  13. // Where these docs live in the 3x-ui monorepo — used for "Edit on GitHub" links.
  14. export const gitConfig = {
  15. user: 'MHSanaei',
  16. repo: '3x-ui',
  17. branch: 'main',
  18. docsDir: 'docs/content/docs',
  19. };
  20. export const productRepoUrl = `https://github.com/${productRepo.user}/${productRepo.repo}`;
  21. // AI-generated interactive wiki of the 3x-ui codebase.
  22. export const deepWikiUrl = `https://deepwiki.com/${productRepo.user}/${productRepo.repo}`;
  23. // Official 3x-ui community channel on Telegram (announcements & support).
  24. export const telegramChannel = 'XrayUI';
  25. export const telegramChannelUrl = `https://t.me/${telegramChannel}`;
  26. // Support the developer — donation page with funding goals/targets.
  27. export const donateUrl = 'https://donate.sanaei.dev/';
  28. // Public site origin, used for metadataBase / canonical URLs / OG images.
  29. // Defaults to the production domain, so the env var is optional. Use `||` (not
  30. // `??`) so an empty string — e.g. an unset `${{ vars.NEXT_PUBLIC_SITE_URL }}`
  31. // in CI — also falls back instead of shipping a blank origin.
  32. export const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://docs.sanaei.dev';