0.1.0 • Published 11 months ago
hypernext v0.1.0
hypernext
Next.js in a Hyperdrive
npm i -g hypernext
Deploy
First install npm i -g drives
for easier deploys!
Go to your project and run:
drives touch
# Creates a new Hyperdrive and it prints the key
Run this custom Next.js server:
hypernext <drive-key> [--port 49337] [--host <127.0.0.1>]
First time nothing will happen because the drive is empty.
Make a new build like so:
npm run build
rm -rf .next/cache # Removes cache (achieves ~2mb delta updates)
# Run those `drives` commands in the same dir as the initial `drives touch`
drives mirror . <drive-key> --prefix /.next
drives mirror . <drive-key> --prefix /public
drives seed <drive-key>
# Wait until hypernext's process downloads the update, then stop seeding
Recommended to have a simple-seeder --drive <key>
process as a backup, so you can seed until the seeder is fully synced.
License
MIT