diff --git a/lib/dev.js b/lib/dev.js index 3e570f5..1f228cc 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -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) } diff --git a/package.json b/package.json index 859a9fc..6ffad3d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "0.3.4", + "version": "0.3.5", "bin": { "fite": "index.js" },