Skip to content

Commit 9ec7992

Browse files
committed
chore: add code comment about timing of metadata files removal
1 parent 70ae294 commit 9ec7992

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/runtime/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ const plugin: NetlifyPlugin = {
254254
warnForProblematicUserRewrites({ basePath, redirects })
255255
warnForRootRedirects({ appDir })
256256
await warnOnApiRoutes({ FUNCTIONS_DIST })
257+
258+
// we are removing metadata files from Publish directory
259+
// we have to do this after functions were bundled as bundling still
260+
// require those files, but we don't want to publish them
257261
await removeMetadataFiles(publish)
258262

259263
if (experimental?.appDir) {

0 commit comments

Comments
 (0)