-
Notifications
You must be signed in to change notification settings - Fork 8
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: allow certificate to be supplied to serve
#7
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.
looks mostly good to me, left a tiny question
I don't see any comments 🤔 |
hm, me neither - GitHub swallowed it? 🤷 give me a sec |
@@ -56,7 +56,9 @@ const prepareServer = ({ | |||
// no-op | |||
} | |||
|
|||
await deno.runInBackground(['run', ...flags, stage2Path, port.toString()], true, processRef) | |||
const bootstrapFlags = ['--port', port.toString()] |
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.
looks like we didn't supply the --port
flag before - assuming this is unrelated to the certificate path, was broken before, and you drive-by-fixed this.
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.
We did supply it, but as a positional parameter and not a flag (i.e. deno run script.js <PORT>
as opposed to deno run script.js --port <PORT>
). Using flags will allow us to supply additional parameters in the future in a more sustainable way.
You're right that it's not necessarily related to the certificate path, and I should've clarified that. Thanks for calling that out!
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.
…ge-bundler#7) Co-authored-by: Renovate Bot <bot@renovateapp.com>
* feat: load bootstrap from deploy URL * feat: support loading boot URL from environment variable
…er#7) * feat: allow certificate to be supplied to `serve` * feat: add support for server certificate * refactor: remove `--origin-protocol` flag
Which problem is this pull request solving?
When the
certificatePath
option is supplied to theserve
method, Edge Bundler will calldeno run
with the--cert
flag.Part of https://github.com/netlify/pillar-runtime/issues/323.