fix: use PUB_VERTD_URL

This commit is contained in:
not-nullptr 2025-04-13 23:43:52 +01:00
parent d34bfc7d56
commit 8afe615f56
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,4 @@
PUB_HOSTNAME=localhost:5173 # only gets used for plausible (for now)
PUB_PLAUSIBLE_URL=https://plausible.example.com # can be empty
PUB_ENV=development # "production", "development", or "nightly"
PUB_ENV=development # "production", "development", or "nightly"
PUB_VERTD_URL=https://vertd.vert.sh # default vertd instance

View File

@ -5,10 +5,12 @@ WORKDIR /app
ARG PUB_ENV
ARG PUB_HOSTNAME
ARG PUB_PLAUSIBLE_URL
ARG PUB_VERTD_URL
ENV PUB_ENV=${PUB_ENV}
ENV PUB_HOSTNAME=${PUB_HOSTNAME}
ENV PUB_PLAUSIBLE_URL=${PUB_PLAUSIBLE_URL}
ENV PUB_VERTD_URL=${PUB_VERTD_URL}
COPY package.json ./

View File

@ -7,12 +7,14 @@ services:
- PUB_PLAUSIBLE_URL=${PUB_PLAUSIBLE_URL:-https://plausible.example.com}
- PUB_ENV=${PUB_ENV:-production}
- PORT=${PORT:-3000}
- PUB_VERTD_URL=${PUB_VERTD_URL:-https://vertd.vert.sh}
build:
context: .
args:
PUB_HOSTNAME: ${PUB_HOSTNAME:-vert.sh}
PUB_PLAUSIBLE_URL: ${PUB_PLAUSIBLE_URL:-https://plausible.example.com}
PUB_ENV: ${PUB_ENV:-production}
PUB_VERTD_URL: ${PUB_VERTD_URL:-https://vertd.vert.sh}
restart: unless-stopped
ports:
- ${PORT:-3000}:80

View File

@ -1,3 +1,4 @@
import { PUB_VERTD_URL } from "$env/static/public";
import type { ConversionSpeed } from "$lib/converters/vertd.svelte";
export { default as Appearance } from "./Appearance.svelte";
@ -18,7 +19,7 @@ export class Settings {
public settings: ISettings = $state({
filenameFormat: "VERT_%name%",
plausible: true,
vertdURL: "https://vertd.vert.sh",
vertdURL: PUB_VERTD_URL,
vertdSpeed: "slow",
});