chore: add recomendation to show variables

This commit is contained in:
Mauricio Siu
2024-06-02 16:49:04 -06:00
parent 8f9d21c0f8
commit 306f02f5cd

View File

@@ -185,6 +185,7 @@ export function generate(schema: Schema): Template {
const toptKeyBase = generateBase64(32); const toptKeyBase = generateBase64(32);
const envs = [ const envs = [
// If you want to show a domain in the UI, please add the prefix _HOST at the end of the variable name.
`PLAUSIBLE_HOST=${randomDomain}`, `PLAUSIBLE_HOST=${randomDomain}`,
"PLAUSIBLE_PORT=8000", "PLAUSIBLE_PORT=8000",
`BASE_URL=http://${randomDomain}`, `BASE_URL=http://${randomDomain}`,
@@ -235,5 +236,6 @@ export function generate(schema: Schema): Template {
### Recomendations ### Recomendations
- Use the same name of the folder as the id of the template. - Use the same name of the folder as the id of the template.
- The logo should be in the public folder. - The logo should be in the public folder.
- If you want to show a domain in the UI, please add the prefix _HOST at the end of the variable name.
- Test first on a vps or a server to make sure the template works. - Test first on a vps or a server to make sure the template works.