absolute start
Build assets, bundle the production server, and start serving.
#Usage
BASH
# Build and start production server
absolute start
# With a custom output directory
absolute start --outdir build
# With a custom server entry
absolute start src/backend/server.tsabsolute start
$ absolute startBuilding assets (3.15s) Bundling production server (544ms) ABSOLUTEJS v0.19.0 ready in 3.69s ➜ Local: http://localhost:3000/
#Options
[entry]Server entry file (defaults to
src/backend/server.ts)--outdirBuild output directory (defaults to
dist)--configPath to
absolute.config.ts#With Static Generation
When your absolute.config.ts includes a static config, the start command automatically pre-renders those pages after bundling:
absolute start
$ absolute startBuilding assets (3.15s) Bundling production server (544ms) Pre-rendering static pages (5 pages, 512ms) ABSOLUTEJS v0.19.0 ready in 4.19s ➜ Local: http://localhost:3000/
See the Static Generation docs for configuration details.