-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…5607) * fix(live): make LIVE_URL env var available in --live mode Before this fix there was no way to access the live URL from functions or build plugins. * fix(live): pass URL to build env instead of setting LIVE_URL turns out that it's only builds and build plugins that have this problem and that functions and edge functions already pick up the right URL and DEPLOY_URL in the environment. This fixes the URL for builds and build plugins when --live is set, but the problem still remains when not running in dev mode. * fix(live): make the fix work for netlify dev without live as well Now the dev server URL is always correctly set as URL and DEPLOY_URL for builds and build plugins in dev mode * fix(live): remove redundant log message * chore: fix linting issues --------- Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
- Loading branch information
1 parent
80b575e
commit 160e8a0
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
160e8a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Benchmark results