-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix(storefront): strf-10193 Bad request for custom front matter: #1019
fix(storefront): strf-10193 Bad request for custom front matter: #1019
Conversation
5175a25
to
72cc3de
Compare
34d8d18
to
afc2104
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.
LGTM 👍
@@ -369,10 +362,10 @@ internals.getTemplatePath = (requestPath, data) => { | |||
|
|||
if (templatePath) { | |||
templatePath = path.join('pages/custom', pageType, templatePath.replace(/\.html$/, '')); | |||
// eslint-disable-next-line no-param-reassign | |||
data.template_file = templatePath; |
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.
Or maybe do you to return here the value and leave the name as it is and we exit iterating over the layouts
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.
It's better to rename as we need updated bcapp data earlier than just template path.
- template is get locally; - test fix;
d234e5d
to
9356617
Compare
🎉 This PR is included in version 5.3.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What?
We don't need to send any data to
bcapp
since stencil can take all data from local theme.Tickets / Documentation
Add links to any relevant tickets and documentation.
Screenshots (if appropriate)
cc @bigcommerce/storefront-team