Skip to main content

run

Function run 

Source
pub fn run(routes: Routes)
Expand description

Load .env files, configure logging and run the app.

Command-line flags understood by the generated binary:

  • (none) – serve
  • --export – render every static page, print a JSON report and exit (writes nothing; used by next-rust build as a check)
  • --routes – print the compiled route table and exit