-
Notifications
You must be signed in to change notification settings - Fork 68
Add constants.EDGE_HANDLERS_DIST
#1822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I really like this idea! I think considering that users will be able to configure the edge handlers directory and user edge handler plugins will build to that directory, we'd want this capability |
Done at #1830 |
somehow i missed this specific issue. so sorry for being late to the party. comment from the PR:
|
why is this different from functions? we have a specific bundling format that is not openly documented and relies on a bunch of implementation details in our runtime. third parties won't be able to produce meaningful output into this directory |
Yes, this makes sense, especially your last argument. Thanks for chiming in before we ship this. My only concern would be if some Plugins started to reverse engineer |
yeah, we don't have to support hacks. that's the good thing about not providing this path openly |
I would actually prefer if this was exposed in some way and not hardcoded in the CLI. Using the plugin as a direct dependency in the CLI feels odd and I'm not sure it's worth separating that logic into a separate package just for the sake of exporting some consts. |
I personally don't have any strong preference either way, so will let @mraerino and @shortdiv chime in.
Yes, this is relative to the build directory (called |
While writing the documentation, the following potential use case was brought up: users might want to debug Edge handlers bundling by viewing the output bundles. This would require knowledge and documentation of |
we don't need it right now, but we can keep it in the backlog for when people run into issues with the process |
This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 14 days if no further activity occurs. Thanks! |
This issue was closed because it had no activity for over 1 year. |
Uh oh!
There was an error while loading. Please reload this page.
Some plugins have previously wanted to know the output directory where Functions are bundled. We provide with a non-configurable
constants.FUNCTIONS_DIST
for this purpose.We might have the same need for Edge handlers. At the moment, the output directory is hard-coded as
.netlify/edge-handlers
. However, we probably should follow the same pattern and expose it as a non-configurableconstants.EDGE_HANDLERS_DIST
instead so Build plugins can use this value.@mraerino @calavera @shortdiv What do you think?
The text was updated successfully, but these errors were encountered: