mirror of https://github.com/VERT-sh/VERT.git
fix: somehow i forgot the PUB_ prefix
This commit is contained in:
parent
c51acba26f
commit
c5d349b6ed
|
|
@ -2,7 +2,7 @@ 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_VERTD_URL=https://vertd.vert.sh # default vertd instance
|
||||
DISABLE_ALL_EXTERNAL_REQUESTS=false # disables vertd, stripe, plausible, etc. use if your boss complains about privacy
|
||||
PUB_DISABLE_ALL_EXTERNAL_REQUESTS=false # disables vertd, stripe, plausible, etc. use if your boss complains about privacy
|
||||
|
||||
# please do not change these. donations help a lot
|
||||
PUB_DONATION_URL=https://donations.vert.sh
|
||||
|
|
|
|||
|
|
@ -5,12 +5,28 @@ import { PandocConverter } from "./pandoc.svelte";
|
|||
import { VertdConverter } from "./vertd.svelte";
|
||||
import { MagickConverter } from "./magick.svelte";
|
||||
|
||||
export const converters = [
|
||||
new MagickConverter(),
|
||||
new FFmpegConverter(),
|
||||
new VertdConverter(),
|
||||
new PandocConverter(),
|
||||
];
|
||||
// export const converters = [
|
||||
// new MagickConverter(),
|
||||
// new FFmpegConverter(),
|
||||
// new VertdConverter(),
|
||||
// new PandocConverter(),
|
||||
// ];
|
||||
|
||||
const getConverters = (): Converter[] => {
|
||||
const converters: Converter[] = [
|
||||
new MagickConverter(),
|
||||
new FFmpegConverter(),
|
||||
];
|
||||
|
||||
if (PUB_DISABLE_ALL_EXTERNAL_REQUESTS !== "true") {
|
||||
converters.push(new VertdConverter());
|
||||
}
|
||||
|
||||
converters.push(new PandocConverter());
|
||||
return converters;
|
||||
};
|
||||
|
||||
export const converters = getConverters();
|
||||
|
||||
export function getConverterByFormat(format: string) {
|
||||
for (const converter of converters) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue