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

Show workaround for the caching/production bug in paypal/makara #4

Open
alchemycs opened this issue Jan 20, 2014 · 0 comments
Open

Comments

@alchemycs
Copy link

Might be worth while updating the README and example to show the workaround for the caching/production bug in paypal/makara issue 9

i.e., if you run with NODE_ENV=production the localisation will not work as expected, you must use something like:

//In production, this is wrong:
res.locals.context = {
  locality: 'en_AU';
}; //Broken with NODE_ENV=production

res.locals.context = {
  locality: {
    country: 'AU',
    language: 'en'
  }
}; //Works with NODE_ENV=production
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

No branches or pull requests

1 participant