Deploye deine Next.js-App
harvis serves static files, so this works for the part of Next.js that produces static files: static export. Add one line to your config, build, and the CLI takes it from there. Server-rendered routes, API routes, and middleware don't run here — there's no server behind this host.
- 01
Enable static export
Add "output: 'export'" to next.config.js. Routes using API routes, middleware, or server-side rendering won't build — everything else does.
- 02
Build the app
Run "npm run build". With static export on, Next.js writes fully rendered HTML, CSS, and JS to an "out" folder instead of starting a server.
- 03
Deployen
Führe "npx harvis deploy out" im Projektstamm aus. Keine Konfiguration und kein Login für diesen ersten Deploy — du bekommst sofort eine Live-URL, dazu einen privaten Claim-Link, um die Site jederzeit einem kostenlosen Konto zuzuordnen.
Next.js mit einem Befehl deployen
Baue dein Projekt und gib harvis den Output-Ordner. Für diesen ersten Deploy brauchst du kein Konto — du bekommst einen Live-Link und einen privaten Claim-Link, um die Site später zu verwalten.
npm run build npx harvis deploy out
Lieber Dateien ziehen statt Terminal? Baue das Projekt und zieh den Output-Ordner hierher — veröffentlicht wird genauso.
Fragen zum Deployen von Next.js
I use next/image or API routes. Can I still deploy here?
API routes and the default next/image loader need a server, so they don't work under static export. next/image still works if you set images.unoptimized: true (or point loader at an external image service) — everything else in the App or Pages router that doesn't touch the server builds fine.
Do dynamic routes like /blog/[slug] work with static export?
Yes, as long as they implement generateStaticParams (App Router) or getStaticPaths (Pages Router) so Next knows which pages to pre-render at build time. Routes with no way to enumerate their params ahead of time can't be static.
Ist das Deployen einer Next.js-App auf harvis wirklich kostenlos?
Ja, keine Kreditkarte nötig. Die kostenlosen Limits sind 500 Dateien und 50 MB pro Site — für einen statischen Next.js-Build reichlich Platz. Veröffentlichte Sites laufen nicht ab, sie bleiben live, bis du sie löschst.
Kann ich für die deployte Next.js-Site eine eigene Domain nutzen?
Jede Site bekommt eine kostenlose harvis.dev-Adresse, und du kannst dir nach dem Claimen im Dashboard ein eigenes Subdomain aussuchen — meine-app.harvis.dev statt einer zufälligen. Eine eigene Domain, die du bereits besitzt (wie meinshop.de), auf die Site zeigen zu lassen, wird noch nicht unterstützt.
Was ist der Unterschied zum Deployen von Next.js auf Vercel oder Netlify?
Vercel und Netlify drehen sich darum, ein Git-Repo zu verbinden und den Build auf ihren Servern laufen zu lassen, mit einem Dashboard zur Konfiguration. harvis überspringt das alles: Du baust lokal (oder in deiner eigenen CI), führst einen CLI-Befehl gegen den Output-Ordner aus und bekommst einen Link — ohne Projekt-Setup und ohne Konto, bis du die Site behalten willst.
Du deployst etwas anderes?
Das Rezept ist überall gleich — bauen, dann mit npx harvis deploy den Output ausliefern.