Skip to content
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

Merged
merged 4 commits into from
May 3, 2022

Conversation

eduardoboucas
Copy link
Member

@eduardoboucas eduardoboucas commented Apr 27, 2022

Which problem is this pull request solving?

When the certificatePath option is supplied to the serve method, Edge Bundler will call deno run with the --cert flag.

Part of https://github.com/netlify/pillar-runtime/issues/323.

@eduardoboucas eduardoboucas added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Apr 27, 2022
Copy link
Contributor

@Skn0tt Skn0tt left a 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

@eduardoboucas
Copy link
Member Author

looks mostly good to me, left a tiny question

I don't see any comments 🤔

@Skn0tt
Copy link
Contributor

Skn0tt commented May 2, 2022

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()]
Copy link
Contributor

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.

Copy link
Member Author

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!

Copy link
Member Author

Choose a reason for hiding this comment

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

@eduardoboucas eduardoboucas merged commit 51eabf7 into main May 3, 2022
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
* feat: load bootstrap from deploy URL

* feat: support loading boot URL from environment variable
Skn0tt pushed a commit to netlify/build that referenced this pull request Apr 23, 2024
…er#7)

* feat: allow certificate to be supplied to `serve`

* feat: add support for server certificate

* refactor: remove `--origin-protocol` flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants