Hosting
Chaos Reactor is built with Next.js, which is a framework for building static and server-rendered applications. This means that you can host Chaos Reactor on any static hosting service, such as Netlify, Vercel, Surge, or GitHub Pages.
Netlify
To host Chaos Reactor on Netlify, you can use the following configuration:
[build]
command = "npm run build"
publish = "build"
functions = "functions"
Netlify and Next.js
Netlify comes with support for Next.js baked-in.
Vercel
To host Chaos Reactor on Vercel, you can use the following configuration:
{
"builds": [
{
"src": "package.json",
"use": "@vercel/next"
}
]
}
Surge
To host Chaos Reactor on Surge, you can use the following configuration:
{
"build": "npm run build",
"public": "build",
"functions": "functions"
}
GitHub Pages
To host Chaos Reactor on GitHub Pages, you can use the following configuration:
{
"homepage": "https://<your-username>.github.io/<your-repo-name>",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
}
Custom
If you want to host Chaos Reactor on a custom server, you can use the following configuration:
{
"scripts": {
"start": "next start -p $PORT"
}
}