Configuration settings for a static site hosted on wisp.place
any
Any valid record key
Properties
cleanUrls
boolean
Optional
Enable clean URL routing. When enabled, '/about' will attempt to serve '/about.html' or '/about/index.html' automatically.
falsecustom404
string
Optional
Custom 404 error page file path. Incompatible with directoryListing and spaMode.
maxLength: 500 bytesdirectoryListing
boolean
Optional
Enable directory listing mode for paths that resolve to directories without an index file. Incompatible with spaMode.
falseheaders
array
of
ref
#customHeader
Optional
Custom HTTP headers to set on responses
maxLength: 50 itemsindexFiles
array
of
string
Optional
Ordered list of files to try when serving a directory. Defaults to ['index.html'] if not specified.
maxLength: 10 itemsspaMode
string
Optional
File to serve for all routes (e.g., 'index.html'). When set, enables SPA mode where all non-file requests are routed to this file. Incompatible with directoryListing and custom404.
maxLength: 500 bytesView raw schema
{
"key": "any",
"type": "record",
"record": {
"type": "object",
"properties": {
"headers": {
"type": "array",
"items": {
"ref": "#customHeader",
"type": "ref"
},
"maxLength": 50,
"description": "Custom HTTP headers to set on responses"
},
"spaMode": {
"type": "string",
"maxLength": 500,
"description": "File to serve for all routes (e.g., 'index.html'). When set, enables SPA mode where all non-file requests are routed to this file. Incompatible with directoryListing and custom404."
},
"cleanUrls": {
"type": "boolean",
"default": false,
"description": "Enable clean URL routing. When enabled, '/about' will attempt to serve '/about.html' or '/about/index.html' automatically."
},
"custom404": {
"type": "string",
"maxLength": 500,
"description": "Custom 404 error page file path. Incompatible with directoryListing and spaMode."
},
"indexFiles": {
"type": "array",
"items": {
"type": "string",
"maxLength": 255
},
"maxLength": 10,
"description": "Ordered list of files to try when serving a directory. Defaults to ['index.html'] if not specified."
},
"directoryListing": {
"type": "boolean",
"default": false,
"description": "Enable directory listing mode for paths that resolve to directories without an index file. Incompatible with spaMode."
}
}
},
"description": "Configuration settings for a static site hosted on wisp.place"
}