Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 1.17 KB

FAQ.md

File metadata and controls

29 lines (22 loc) · 1.17 KB

Can I deploy vitamin to heroku?

Absolutely! From your application directory, you can set the buildpack like this:

$ heroku buildpacks set:https://github.com/victormours/heroku-buildpack-vitaminjs

And then just git push heroku master

And you're done!

How to use generators / async-await ?

VitaminJS comes with babel transforms that make generators and async-await works outside the box on the server-side. However, if you want to use them on the client side, you'll need to add a runtime executable to your app.

$ yarn add regenerator-runtime

And then, import it at the top of your routes.jsx file.

import 'regenerator-runtime/runtime';
...
export default myRoutes

Can I customize webpack config ?

No. For now, you don't have the possibility to extends vitaminJS build config.

You can refer to #205 on the why we didn't ship with a plugin system in the first place. However, we are currently slowly evolving on this mentality and that's something we might consider for next major.

In the meantime, if you find a use case that is not covered by our webpack config, don't hesitate to propose a PR.