File tree Expand file tree Collapse file tree
packages/cloudflare/src/cli/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,10 +146,20 @@ async function migrateCommand(args: { forceInstall: boolean }): Promise<void> {
146146
147147 const gitIgnoreExists = fs . existsSync ( ".gitignore" ) ;
148148 printStepTitle ( `${ gitIgnoreExists ? "Updating" : "Creating" } .gitignore file` ) ;
149- conditionalAppendFileSync ( ".gitignore" , "# OpenNext\n.open-next\n" , {
150- appendIf : ( content ) => ! content . includes ( ".open-next" ) ,
151- appendPrefix : "\n" ,
152- } ) ;
149+ conditionalAppendFileSync (
150+ ".gitignore" ,
151+ `# OpenNext
152+ .open-next
153+
154+ # wrangler files
155+ .wrangler
156+ .dev.vars*
157+ ` ,
158+ {
159+ appendIf : ( content ) => ! content . includes ( ".open-next" ) ,
160+ appendPrefix : "\n" ,
161+ }
162+ ) ;
153163
154164 const nextConfig = findNextConfig ( { appPath : projectDir } ) ;
155165
You can’t perform that action at this time.
0 commit comments