Configuration Reference
You can edit
zare.config.jsfile to change the server configurations
port - number
By default the server will listen on 8185, But this can be change by modifying port in the configurations.
outDir - folder path
This directory will contains the static HTML files. By default, it’s ./dist
Reference
staticDir - folder path(s)
Static file directory, or an array containing multiple static directories. By default, it’s ./static.
pagesDir - folder path
This directory will contains views files. By default, it’s ./pages.
generateStaticParams
The generateStaticParams function generates static parameter values for dynamic routes.
Type Declaration
interface IZareConfig {
generateStaticParams?: (
path?: string,
) => Record<string, any> | Promise<Record<string, any>>;
}Last updated on