Repository navigation
web-terrarium 0.1.0
First release as web-terrarium (formerly next-desktop). Packages Next.js apps; other app types follow (see the roadmap).
Changed
- Renamed to web-terrarium. The
next-desktopcommand still works. - Electron, electron-builder and esbuild are web-terrarium's own dependencies, not peer dependencies, so a project installs only
web-terrarium. Next.js stays an optional peer dependency. install-toolsinstalls web-terrarium (with its tools) and sharp from the lockfile, andnpx web-terrarium packageruns that copy. The CI template is updated.- The config file is
terrarium.config.mjs.desktop.config.mjsis still read when it's the only one. - The web app is set with
app: { type: 'next', ... }.next: { ... }still works. next.config.jsreadsWEB_TERRARIUM_DIST_DIR.NEXT_DESKTOP_DIST_DIRis still set.install-toolsreadsWEB_TERRARIUM_REGISTRY.NEXT_DESKTOP_REGISTRYstill works.- The default build folder is
.next-terrarium(was.next-desktop). servers.loglines from web-terrarium itself start with[web-terrarium](was[next-desktop]).- Errors print one line, without the stack. Set
DEBUG=web-terrariumfor the stack.
Added
startTimeoutMs: how long to wait for each server at start-up (default 60 s).servers[].ready: 'tcp': a server is ready once its port takes a connection, for servers that don't speak HTTP, such as an embedded database (PGlite with pglite-socket, say).icon: the app's icon. If not set, the web app's own icon is used (app/icon.png, thenfavicon.ico).help/--help/-handversion/--version/-v.
Fixed
stagerefuses anoutDirthat is the project folder or one above it. It deletesoutDirfirst, so before this a badoutDirwould delete the project.- Bundled servers give CommonJS dependencies
__dirnameand__filename, not justrequire. A server that declares its ownrequireor__dirnamestill builds. - Building on Windows ARM stops with a clear error instead of making an app whose native modules don't load.
- Works when Next puts
server.jsdeeper insidestandalone/. That happens in a monorepo, or when Next finds a lockfile in a parent folder. Before,stagefailed with "No standalone server". - The window keeps the app's name as its title, instead of the page's
<title>. - Closing the window while the app page is still loading quits quietly. Before, it showed a "could not start" error (ERR_FAILED), and the app and its servers kept running until the error was dismissed.
Install: npm install --save-dev web-terrarium · npm