feat(templates): programmatic migration gen (#9238)

Programmatically generate lockfiles and postgres migrations
This commit is contained in:
Elliot DeNolf
2024-11-15 21:47:05 -05:00
committed by GitHub
parent ff8e7bb968
commit 1393d84bca
28 changed files with 16193 additions and 5779 deletions

View File

@@ -69,7 +69,10 @@ async function main() {
await fs.writeFile(
path.resolve(templatePath, '.env'),
// Populate POSTGRES_URL just in case it's needed
`PAYLOAD_SECRET=secret\nDATABASE_URI=${databaseConnection}\nPOSTGRES_URL=${databaseConnection}`,
`PAYLOAD_SECRET=secret
DATABASE_URI=${databaseConnection}
POSTGRES_URL=${databaseConnection}
BLOB_READ_WRITE_TOKEN=vercel_blob_rw_TEST_asdf`,
)
execSync('pnpm run build', execOpts)