A single command to build your site into a
npm run build
⚠️ Note that this folder need to be served from a real web server. You
cannot just open an
index.html and expect the client code to work correctly.
If you want to run the built project locally, you can run it with these commands
npm install -g serveserve dist
This will install a small web server and launch your project from
During the static build, you might get some different kinds of errors
Invariant Violation: Minified React error #61; visit for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
By default, the static build has
process.env.NODE_ENV set to
can start the static build like this
NODE_ENV=development npm run build
Then you can return to the console and you should have a more explicit error.
Phenomic uses debug under the hood, so
it's pretty easy to get a very verbose output in your terminal. You can start or
build your project by prefixing your command with the
variable set to
NODE_ENV=development DEBUG=phenomic:* npm run build
Depending on what you want to view/filter, you can use a more spefic value for
You can deploy the
dist folder to any kind of static hosting. Nothing special
is supposed to be done!
Congratulations! You successfully followed our tutorial. You can find the source in phenomic/examples/react-app-getting-started