feat(templates): add excalidraw

This commit is contained in:
Mauricio Siu
2024-06-30 00:32:14 -06:00
parent 2e3b0ddcde
commit 54adab16cf
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import {
generateHash,
generateRandomDomain,
type Template,
type Schema,
} from "../utils";
export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const envs = [
`EXCALIDRAW_HOST=${randomDomain}`,
"EXCALIDRAW_PORT=80",
`HASH=${mainServiceHash}`,
];
return {
envs,
};
}