Skip to content

Commit a80af76

Browse files
committed
refine functional
1 parent a7c7e30 commit a80af76

File tree

1 file changed

+2
-1
lines changed
  • packages/@apphosting/adapter-nextjs/src

1 file changed

+2
-1
lines changed

packages/@apphosting/adapter-nextjs/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ async function generateBundleYaml(
203203
}
204204

205205
await writeFile(opts.bundleYamlPath, yamlStringify(outputBundle));
206-
UpdateOrCreateGitignore(cwd, ["/.apphosting/"]);
206+
const normalizedBundleDir = normalize(relative(cwd, opts.outputDirectoryBasePath));
207+
UpdateOrCreateGitignore(cwd, [`/${normalizedBundleDir}/`]);
207208
return;
208209
}
209210

0 commit comments

Comments
 (0)