-
Notifications
You must be signed in to change notification settings - Fork 394
fix: graph language #4308
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: graph language #4308
Conversation
📊 Benchmark resultsComparing with 8b697d9 Package size: 442 MB⬇️ 0.00% decrease vs. 8b697d9
Legend
|
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.
Hi @sgrove, left one comment
@@ -217,8 +217,7 @@ const getNetlifyGraphConfig = async ({ command, options, settings }) => { | |||
const moduleType = | |||
(userSpecifiedConfig.moduleType && userSpecifiedConfig.moduleType.split(path.sep)) || | |||
defaultFrameworkConfig.moduleType | |||
const language = | |||
(userSpecifiedConfig.language && userSpecifiedConfig.language.split(path.sep)) || autodetectedLanguage | |||
const language = (userSpecifiedConfig.language && userSpecifiedConfig.language) || autodetectedLanguage |
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.
const language = (userSpecifiedConfig.language && userSpecifiedConfig.language) || autodetectedLanguage | |
const language = userSpecifiedConfig.language || autodetectedLanguage |
It seems userSpecifiedConfig.language
is duplicated?
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.
Should be fixed!
@sgrove when you squash merge this PR, make sure to use |
Summary
Fixes
language
innetlify.toml/graph
to be a scalar and not an array, which was causing the wrong language to be emitted for graph handlers