refactor: format

This commit is contained in:
Mauricio Siu
2024-07-22 12:58:14 -06:00
parent bb13a09def
commit c13eb65b5a

View File

@@ -1,22 +1,22 @@
// EXAMPLE
import {
generateHash,
generateRandomDomain,
type Template,
type Schema,
type Schema,
type Template,
generateHash,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const port = 8096;
const envs = [
`JELLYFIN_HOST=${randomDomain}`,
`HASH=${mainServiceHash}`,
`JELLYFIN_PORT=${port}`
];
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const port = 8096;
const envs = [
`JELLYFIN_HOST=${randomDomain}`,
`HASH=${mainServiceHash}`,
`JELLYFIN_PORT=${port}`,
];
return {
envs,
};
return {
envs,
};
}