fixed bug

pull/1/head
yutent 2023-03-16 19:55:00 +08:00
parent 8781b70a6d
commit 82d1fc31a6
2 changed files with 4 additions and 1 deletions

View File

@ -207,6 +207,9 @@ export default async function createServer(root = '', conf = {}) {
} else { } else {
file = join(pagesDir, pathname) file = join(pagesDir, pathname)
} }
if (!fs.isfile(file)) {
file = join(SOURCE_DIR, pathname)
}
} else { } else {
file = join(SOURCE_DIR, pathname) file = join(SOURCE_DIR, pathname)
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "fite", "name": "fite",
"type": "module", "type": "module",
"version": "0.3.4", "version": "0.3.5",
"bin": { "bin": {
"fite": "index.js" "fite": "index.js"
}, },