npm install
npm run dev
# or
yarn
yarn dev
yarn next:build
npm run next:build
Run this command after yarn build.
yarn start
ReasonML is an exciting new language and since it can compile directly to JS via bucklescript that means that we can power our backend server with REASONML and also have the frontend built with reasonreact, which is covered in another example. This example shows how powerful & helpful it can be to build a next js custom server with a typesafe language.
The example has been built off the custom-server
example that uses pure nodejs
to build the custom server.