Skip to content

Commit 36da3b0

Browse files
committed
fix: add missing gir ignored files for the migrate command
1 parent b47b9b5 commit 36da3b0

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

packages/cloudflare/src/cli/commands/migrate.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)