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 {
file = join(pagesDir, pathname)
}
if (!fs.isfile(file)) {
file = join(SOURCE_DIR, pathname)
}
} else {
file = join(SOURCE_DIR, pathname)
}

View File

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