-
Notifications
You must be signed in to change notification settings - Fork 27
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: introduce new package @commercetools-backend/express with utilities for working with Custom Applications #1447
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/commercetools/merchant-center-application-kit/5b4l43ysh |
f130d24
to
e4c41b0
Compare
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.
Good stuff! This will help builders a lot :)
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.
Alright, I addressed your feedback and moved the package to packages-backend
@@ -0,0 +1,45 @@ | |||
# @commercetools-backend/server-express |
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.
Sorry, do we do express
or server-express
? Intuitively I would just go with express
🤷 😕
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.
Yeah I guess with the "backend" prefix we can just use express
} | ||
const cloudIdentifierHeader = request.header('x-mc-api-cloud-identifier'); | ||
const issuer = | ||
options.inferIssuer && cloudIdentifierHeader |
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.
Danke 🖤!
default: | ||
return undefined; | ||
} | ||
}; | ||
const throwIfIssuerIsNotAValidUrl = (issuer: string) => { |
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.
🏨
So for further work on the package, I suppose we can merge this and open other PRs? |
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.
Yes, I think this is great already for a start! Thanks!
e5b910b
to
a2a62ee
Compare
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.
Was commiting the build on propose or are we missing a .gitignore entry? 😄
Just a mistake 😅 |
Ref #1444
cc @adnasa for awareness