Skip to content

Add constants.EDGE_HANDLERS_DIST #1830

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

Closed
wants to merge 1 commit into from
Closed

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Sep 18, 2020

Fixes #1822

This adds constants.EDGE_HANDLERS_DIST. This is passed to Build plugins to locate where Edge handlers bundles are being output. Its value is always .netlify/edge-handlers (relative to the build directory).

This PR includes an integration test.

@ehmicky ehmicky added type: feature code contributing to the implementation of a feature and/or user facing functionality project:edge-handlers-support labels Sep 18, 2020
@ehmicky ehmicky requested a review from erezrokah September 18, 2020 20:17
@ehmicky ehmicky self-assigned this Sep 18, 2020
Copy link
Contributor

@mraerino mraerino left a comment

Choose a reason for hiding this comment

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

i have a strong opinion that this constant should be the choice of the plugin, not of netlify-build.
we are using that constant in other contexts like

  • uploading handlers from CLI
  • running handlers locally via traffic mesh

it doesn't make sense to move setting this to netlify-build. it's not something we consider anyone to use from the outside right now

@ehmicky ehmicky closed this Sep 21, 2020
@ehmicky ehmicky deleted the feat/edge-handlers-dist branch September 21, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:edge-handlers-support type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add constants.EDGE_HANDLERS_DIST
2 participants