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
{
"description": "Configuration settings for a static site hosted on wisp.place",
"key": "any",
"record": {
"properties": {
"cleanUrls": {
"default": false,
"description": "Enable clean URL routing. When enabled, '/about' will attempt to serve '/about.html' or '/about/index.html' automatically.",
"type": "boolean"
},
"custom404": {
"description": "Custom 404 error page file path. Incompatible with directoryListing and spaMode.",
"maxLength": 500,
"type": "string"
},
"directoryListing": {
"default": false,
"description": "Enable directory listing mode for paths that resolve to directories without an index file. Incompatible with spaMode.",
"type": "boolean"
},
"headers": {
"description": "Custom HTTP headers to set on responses",
"items": {
"ref": "#customHeader",
"type": "ref"
},
"maxLength": 50,
"type": "array"
},
"indexFiles": {
"description": "Ordered list of files to try when serving a directory. Defaults to ['index.html'] if not specified.",
"items": {
"maxLength": 255,
"type": "string"
},
"maxLength": 10,
"type": "array"
},
"spaMode": {
"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.",
"maxLength": 500,
"type": "string"
}
},
"type": "object"
},
"type": "record"
}