Skip to content

void init .gitignore still allows .env.example, which stops Void from starting #757

Closed

Description

@karthickeyan-dev

Version

void 1.7.0

Problem

void init writes this to .gitignore:

.env
.env.*
!.env.example

Since #311, Void no longer generates .env.example and refuses to start if the file exists:

void/env supports one local file: .env. Remove .env.example and follow the env migration guide.

The !.env.example line looks like a leftover. It tells a new project to commit a file that stops dev and build.

Proposal

Remove !.env.example from SCAFFOLD_GITIGNORE_LINES. The error could also mention that env.ts is where the keys are listed, for anyone adding the file out of habit.

Activity

  1. added a commit that references this issue on Nov 9, 2026
    655a0d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions