Skip to content

Add script to automatically generate .env.local with secure secrets during development - #173

Open
Pranava-Pai-N wants to merge 3 commits into
Developer-Kommunity-24:mainfrom
Pranava-Pai-N:feat/env-script
Open

Pranava-Pai-N wants to merge 3 commits into
Developer-Kommunity-24:mainfrom
Pranava-Pai-N:feat/env-script

Conversation

@Pranava-Pai-N

Copy link
Copy Markdown

Pull Request

📋 Description

Added a predev script for generating .env.local with the dev command

🔄 Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

🧪 Testing

Added predev script for auto setup and also manual setup by developer, also updated contributing docs.

📝 Additional Notes

PR for issue #172

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

👷 Deploy request for dk242 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 720d22f

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dk24 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7487a82
🔍 Latest deploy log https://app.netlify.com/projects/dk24/deploys/6a8f23ab46898f0008446c2d
😎 Deploy Preview https://deploy-preview-173--dk24.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 Welcome @Pranava-Pai-N!

Thank you for contributing to the DK24 - Community Website 💻. This platform connects college tech communities to learn and grow together.

Your pull request will be reviewed soon. Please ensure it follows our guidelines and includes appropriate labels like feature, fix, or refactor.

Together, let’s build something amazing! 🚀

@gaureshpai gaureshpai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: isn't it better to have it pre build than pre dev?

@Pranava-Pai-N

Copy link
Copy Markdown
Author

Hi @gaureshpai thanks for the suggestion, but i assume that developers need .env.local set up when starting local dev (predev), not when building. Plus, running it in prebuild could break production deployment pipelines by generating localhost defaults during build time.

@gaureshpai

Copy link
Copy Markdown
Member

@jtuluve need ur take on this PR

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dk24 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 720d22f
🔍 Latest deploy log https://app.netlify.com/projects/dk24/deploys/6ad4ecd12f5e5cb9bee26ff7
😎 Deploy Preview https://deploy-preview-173--dk24.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@anishshobithps anishshobithps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkout https://varlock.dev/ I think it can be a good option here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add script to automatically generate .env.local with secure secrets during development

6 participants