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:
parent
dcc3228429
commit
d4aa2b0408
|
@ -64,7 +64,7 @@ export default async function (dir) {
|
||||||
const req = { url: path }
|
const req = { url: path }
|
||||||
const res = {}
|
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 baseDir = join(outDir, dirname(htmlFilename))
|
||||||
const htmlFilepath = join(outDir, htmlFilename)
|
const htmlFilepath = join(outDir, htmlFilename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue