-
Notifications
You must be signed in to change notification settings - Fork 340
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
feat: add --internal-disable-edge-functions
flag to skip Deno setup
#6495
Conversation
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.
Added a few suggestions to change "doesnt" to "doesn't". Didn't review the functionality or the code in depth.
Co-authored-by: Sean C Davis <scdavis41@gmail.com>
Co-authored-by: Sean C Davis <scdavis41@gmail.com>
Co-authored-by: Sean C Davis <scdavis41@gmail.com>
Co-authored-by: Sean C Davis <scdavis41@gmail.com>
src/commands/dev/dev.ts
Outdated
@@ -271,6 +272,7 @@ export const createDevCommand = (program: BaseCommand) => { | |||
.option('-d ,--dir <path>', 'dir with static files') | |||
.option('-f ,--functions <folder>', 'specify a functions folder to serve') | |||
.option('-o ,--offline', 'disables any features that require network access') | |||
.option('--disable-edge-functions', "disables edge functions. use this if your environment doesn't support Deno") |
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.
I don't think we should treat this as a customer-facing flag. The only use case we have for it is purely internal, and we haven't fully considered the experience people will get if they disable edge functions. I suggest we use .hideHelp()
here (example) so it's removed from the docs, and I would even consider renaming it to something like --internal-disable-edge-functions
. That way we're not committing to indefinitely supporting something we're just exploring at this point.
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.
that's a very fair point. implemented in 6540b87
--disable-edge-functions
flag to skip Deno setup--internal-disable-edge-functions
flag to skip Deno setup
Resolves https://linear.app/netlify/issue/COM-579/run-ntl-dev-without-the-need-for-deno.