feat(templates): add appsmith

This commit is contained in:
Mauricio Siu
2024-06-30 00:24:16 -06:00
parent ed0f3cadd6
commit 2e3b0ddcde
13 changed files with 60 additions and 15 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 = [
`APP_SMITH_HOST=${randomDomain}`,
"APP_SMITH_PORT=80",
`HASH=${mainServiceHash}`,
];
return {
envs,
};
}