Renamed the "error" static assets at the Resources folder in the Website service target as "not-found".

This commit is contained in:
2026-08-01 23:07:04 +02:00
parent 2c571233bc
commit a056f7f69a
6 changed files with 10 additions and 10 deletions
@@ -7,8 +7,6 @@ import Infrastructure
enum StaticFile: Asset, CaseIterable {
/// The `apple-touch-icon.png` icon.
case appleTouchIcon
/// The `css/error.css` stylesheet and `js/error.js` script for the not-found page.
case error
/// The `favicon.ico` icon.
case favicon
/// The `icon.svg` icon.
@@ -19,6 +17,8 @@ enum StaticFile: Asset, CaseIterable {
case icon512
/// The `css/index.css` stylesheet and `js/index.js` script for the landing page.
case index
/// The `css/not-found.css` stylesheet and `js/not-found.js` script for the not-found page.
case notFound
/// The `robots.txt` crawler directives.
case robots
/// The `css/shared.css` stylesheet and `js/shared.js` script shared across pages.
@@ -41,8 +41,8 @@ extension StaticFile {
case .appleTouchIcon,
.icon192,
.icon512: [.png]
case .error,
.index,
case .index,
.notFound,
.shared: [.css, .js]
case .favicon: [.ico]
case .icon: [.svg]
@@ -56,12 +56,12 @@ extension StaticFile {
var fileName: String {
switch self {
case .appleTouchIcon: "apple-touch-icon"
case .error: "error"
case .favicon: "favicon"
case .icon: "icon"
case .icon192: "icon-192"
case .icon512: "icon-512"
case .index: "index"
case .notFound: "not-found"
case .robots: "robots"
case .shared: "shared"
case .site: "site"