Skip to content

fix: clean up edge functions server#310

Merged
eduardoboucas merged 4 commits intomainfrom
feat/edge-functions-cleanup
Jun 18, 2025
Merged

fix: clean up edge functions server#310
eduardoboucas merged 4 commits intomainfrom
feat/edge-functions-cleanup

Conversation

@eduardoboucas
Copy link
Member

Something else I noticed when working on withastro/astro#13768 is that the edge functions server isn't being terminated when NetlifyDev's stop() method is called.

This PR fixes that.

@eduardoboucas eduardoboucas requested review from a team as code owners June 18, 2025 10:11
ps?: ExecaChildProcess
}

export const killProcess = (ps?: ExecaChildProcess) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied from https://github.com/netlify/build/blob/78b7da5dd5b31898b2a25d16eb1008f5fdb27e36/packages/edge-bundler/node/server/util.ts#L38. I can imagine this being useful in other situations, so I added it to @netlify/dev-utils instead of @netlify/edge-functions. We can then update @netlify/edge-bundler to use it.

@eduardoboucas eduardoboucas enabled auto-merge (squash) June 18, 2025 11:45
@eduardoboucas eduardoboucas merged commit 243f3b4 into main Jun 18, 2025
9 of 10 checks passed
@eduardoboucas eduardoboucas deleted the feat/edge-functions-cleanup branch June 18, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants