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

replace String with JSON.stringify #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fancywriter
Copy link

This is clearly a bug, because when I have value of sourceMaps in my config like

sourceMaps:
  urlPrefix: /var/task

It's serialized like [object Object] and that's what I see on environment variable in lambda configuration. I am not sure what this variables is needed for (is it needed at all?), but definitely it shouldn't look like that.

Could it be that for other cases here we should replace String(...) with JSON.stringify(...)?

image

This is clearly a bug, because when I have value of sourceMaps in my config like
```
sourceMaps:
  urlPrefix: /var/task
```
It's serialized like `[object Object]` and that's what I see on environment variable in lambda configuration. I am not sure what this variables is needed for (is it needed at all?), but definitely it shouldn't look like that.

Could it be that for other cases here we should replace `String(...)` with `JSON.stringify(...)`?
@fancywriter
Copy link
Author

@arabold hey! did you have a chance to review it? perhaps it makes sense to add JSON.stringify() in other places too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant