feat(template): add wordpress

This commit is contained in:
Mauricio Siu
2024-06-29 19:56:59 -06:00
parent 210fed30a2
commit 898880634a
4 changed files with 75 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 = [
`WORDPRESS_HOST=${randomDomain}`,
"WORDPRESS_PORT=80",
`HASH=${mainServiceHash}`,
];
return {
envs,
};
}