mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Pass conf to export function (#2962)
* Pass conf to export function * conf -> configuration
This commit is contained in:
parent
531d0a3068
commit
a50e440cf1
|
@ -9,9 +9,9 @@ import { renderToHTML } from './render'
|
||||||
import { getAvailableChunks } from './utils'
|
import { getAvailableChunks } from './utils'
|
||||||
import { printAndExit } from '../lib/utils'
|
import { printAndExit } from '../lib/utils'
|
||||||
|
|
||||||
export default async function (dir, options) {
|
export default async function (dir, options, configuration) {
|
||||||
dir = resolve(dir)
|
dir = resolve(dir)
|
||||||
const config = getConfig(dir)
|
const config = configuration || getConfig(dir)
|
||||||
const nextDir = join(dir, config.distDir)
|
const nextDir = join(dir, config.distDir)
|
||||||
|
|
||||||
log(` using build directory: ${nextDir}`)
|
log(` using build directory: ${nextDir}`)
|
||||||
|
|
Loading…
Reference in a new issue