Configuration
Dir Options
Customizes the project structure.
dir.dist
Type: string
Default: ./dist
Set the directory that xylit build writes your final build to.
The value can be either an absolute file system path or a path relative to the project root.
dir.pages
Type: string
Default: ./src/pages
Set the directory that xylit will watch for routes.
The value can be either an absolute file system path or a path relative to the project root.
dir.public
Type: string
Default: ./public
Set the directory for your static assets. Files in this directory are served at / during dev and copied to your build directory during build. These files are always served or copied as-is, without transform or bundling.
The value can be either an absolute file system path or a path relative to the project root.
dir.src
Type: string
Default: ./src
Set the directory that Astro will read your site from.
The value can be either an absolute file system path or a path relative to the project root.
Server Options
Customize the Xylit Dev-Server, used by xylit dev
.
server.host
Type: string
Default: localhost
Set which network IP addresses the server should listen on (i.e. non-localhost IPs).
server.port
Type: number
Default: 8080
Set which port the server should listen on.