1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Allow create dynamic content.

This commit is contained in:
Arunoda Susiripala 2017-05-08 10:22:32 -07:00
parent dcc3228429
commit d4aa2b0408

View file

@ -64,7 +64,7 @@ export default async function (dir) {
const req = { url: path }
const res = {}
const htmlFilename = page === '/' ? 'index.html' : `${page}${sep}index.html`
const htmlFilename = path === '/' ? 'index.html' : `${path}${sep}index.html`
const baseDir = join(outDir, dirname(htmlFilename))
const htmlFilepath = join(outDir, htmlFilename)