Retroloop
luisstd
HOBBYOP
2 years ago
1 Replies
brody
EMPLOYEE
2 years ago
Hey, nice template, just a couple of suggestions -
for the
DATABASE_URLvariable you can use${{Postgres.DATABASE_PRIVATE_URL}}so that the template user isn't left to hardcode that variable.for
NEXTAUTH_SECRETyou can use something like${{secret(48)}}to have railway generate a random string on template deployment.
references:
https://docs.railway.app/guides/variables#referencing-another-services-variable
https://docs.railway.app/guides/postgresql#variables
https://docs.railway.app/guides/create#template-variable-functions