You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
return'\n If you using \'express-graphql\', you may get server stack-trace for error.\n Just tune \'formatError\' to return \'stack\' with stack-trace:\n\n import graphqlHTTP from \'express-graphql\';\n\n const graphQLMiddleware = graphqlHTTP({\n schema: myGraphQLSchema,\n formatError: (error) => ({\n message: error.message,\n stack: process.env.NODE_ENV === \'development\' ? error.stack.split(\'\\n\') : null,\n })\n });\n\n app.use(\'/graphql\', graphQLMiddleware);';
when envified will break acorn as process.env.NODE_ENV is getting changed to 'development'
The text was updated successfully, but these errors were encountered:
Thanks. That's exactly what I ended up doing, although it meant that I had to clone and modify a third party library.
I understand that doing envify properly would be hard (one way to achieve this is running the code through acorn first, do envify, then regenerate the code from the ast), for now at least it may make sense to have envify become a configurable plugin. I actually didn't know brunch has this functionality built in before and have been using plugins to achieve this.
via Newton Mail [https://cloudmagic.com/k/d/mailapp?ct=pi&cv=9.3.50&pv=10.2&source=email_footer_2]
On Fri, Dec 30, 2016 at 2:35 PM, Aleksey Shvayka <notifications@github.com> wrote:
Hi @leiyangyou [https://github.com/leiyangyou] . Thanks for reaching out.
Can you please try to replace process.env.NODE_ENV with process.env['NODE_ENV'] . Does it help?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [#47 (comment)] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAGXzQtJQmqqpWkwutg6skUMmFzqJC4Gks5rNKZJgaJpZM4LX23d] .
this particular string
when envified will break acorn as process.env.NODE_ENV is getting changed to 'development'
The text was updated successfully, but these errors were encountered: