mirror of https://github.com/VERT-sh/VERT.git
feat: add VERT name const for different environments
This commit is contained in:
parent
603beba40b
commit
1444c835ca
|
@ -1,3 +1,3 @@
|
|||
PUB_HOSTNAME=vert.sh # only gets used for plausible (for now)
|
||||
PUB_HOSTNAME=localhost:5173 # only gets used for plausible (for now)
|
||||
PUB_PLAUSIBLE_URL=https://plausible.example.com # can be empty
|
||||
PUB_ENV=production # "production" or "nightly"
|
||||
PUB_ENV=development # "production", "development", or "nightly"
|
|
@ -1,4 +1,12 @@
|
|||
import { PUB_ENV } from "$env/static/public";
|
||||
|
||||
export const GITHUB_URL_VERT = "https://github.com/VERT-sh/VERT";
|
||||
export const GITHUB_URL_VERTD = "https://github.com/VERT-sh/vertd";
|
||||
export const GITHUB_API_URL = "https://api.github.com/repos/VERT-sh/VERT";
|
||||
export const DISCORD_URL = "https://discord.gg/kqevGxYPak";
|
||||
export const VERT_NAME =
|
||||
PUB_ENV === "development"
|
||||
? "VERT Local"
|
||||
: PUB_ENV === "nightly"
|
||||
? "VERT Nightly"
|
||||
: "VERT.sh";
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
import { onMount } from "svelte";
|
||||
import { quintOut } from "svelte/easing";
|
||||
import "../app.scss";
|
||||
import { DISCORD_URL, GITHUB_URL_VERT } from "$lib/consts";
|
||||
import { DISCORD_URL, GITHUB_URL_VERT, VERT_NAME } from "$lib/consts";
|
||||
import { type Toast as ToastType, toasts } from "$lib/store/ToastProvider";
|
||||
import Toast from "$lib/components/visual/Toast.svelte";
|
||||
import { Settings } from "$lib/sections/settings/index.svelte";
|
||||
|
@ -120,11 +120,11 @@
|
|||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>VERT.sh</title>
|
||||
<title>{VERT_NAME}</title>
|
||||
<meta name="theme-color" content="#F2ABEE" />
|
||||
<meta
|
||||
name="title"
|
||||
content="VERT.sh — Free, fast, and awesome file convert"
|
||||
content="{VERT_NAME} — Free, fast, and awesome file convert"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
|
@ -133,7 +133,7 @@
|
|||
<meta property="og:type" content="website" />
|
||||
<meta
|
||||
property="og:title"
|
||||
content="VERT.sh — Free, fast, and awesome file convert"
|
||||
content="{VERT_NAME} — Free, fast, and awesome file convert"
|
||||
/>
|
||||
<meta
|
||||
property="og:description"
|
||||
|
@ -143,7 +143,7 @@
|
|||
<meta property="twitter:card" content="summary_large_image" />
|
||||
<meta
|
||||
property="twitter:title"
|
||||
content="VERT.sh — Free, fast, and awesome file convert"
|
||||
content="{VERT_NAME} — Free, fast, and awesome file convert"
|
||||
/>
|
||||
<meta
|
||||
property="twitter:description"
|
||||
|
|
Loading…
Reference in New Issue