selfhostnext
v0.0.16
Published
The command-line interface for Selfhostnext
Downloads
25
Maintainers
Readme
npm i -g selfhostnext # install cli
selfhostnext init EXAMPLE
cd EXAMPLE
selfhostnext deploy # publish
Next.js Examples
- nextjs-cron-jobs - schedule
- nextjs-mysql - database
- nextjs-redis - queues, rate limit, ...
- nextjs-s3 - storage, images, videos, ...
- nextjs-ws - websocket
- nextjs-socket.io - websocket w/ cookie
How to Install
Watch the complete process on YouTube.com
- Pick a machine to host. Select Ubuntu LTS 22.04 as the operating system, and make sure at least 2GB/1CPU is chosen. We recommend DigitalOcean* using the link provided you get $200 for the next 60 days for free. We personally use a 2GB/2CPU machine to host a few projects on a single machine. hetzner.com, cloud.oracle.com are worth checking out too!
- Point DNS to IP address of this machine. Buy a domain (example.com) on Namecheap. Don't worry about SSL, it will be installed by selfhostnext. After purchase, click on Manage, then Advanced DNS, and enter Host Records as shown below. Replace 1.1.1.1 with your machines IP address from step 1.
Type Host Value
--- --- ---
A Record @ 1.1.1.1
A Record * 1.1.1.1
- Connect a terminal to the machine.
- Install with one command. Paste the command from your purchase, received via email, into the terminal on your server.
Watch the complete process on YouTube.com
Why?
- Same workflow you already love.
- No asterik on free*
- Drop in replacement. Keep your code as-is.
- No arbitrary limits.
- Billing without surprises.
- The alternative you've been waiting for.
- Built-in storage, one-click start, or defined in code.
- Better performance, data closer to code.
- Private.
- Escape hatch. You too should have an exit strategy.