fixed bug
parent
8781b70a6d
commit
82d1fc31a6
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue