Skip to content

Commit 63f142d

Browse files
committed
Directly create .env.local file in template
1 parent f85c050 commit 63f142d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bin/create.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
4949

5050
// Handle environment files
5151
console.log('🔧 Setting up environment files...');
52-
const envExamplePath = path.join(projectPath, '.env.local.example');
5352
const envPath = path.join(projectPath, '.env.local');
5453

55-
if (fs.existsSync(envExamplePath)) {
56-
fs.copyFileSync(envExamplePath, envPath);
57-
console.log('✅ Environment files configured');
58-
}
54+
const envContent = `# Drizzle
55+
DATABASE_URL=""
56+
`;
57+
58+
fs.writeFileSync(envPath, envContent);
59+
console.log('✅ Environment files configured');
5960

6061
console.log(`\n✨ Success! Created ${projectName} at ${projectPath}`);
6162
console.log('\nInside that directory, you can run several commands:');

0 commit comments

Comments
 (0)