未验证 提交 cd9a1085 编写于 作者: J Joe Haddad 提交者: GitHub

Add ** experimental page globbing support (#6899)

* Add ** page globbing support

* Update check
上级 30fe5fc1
......@@ -86,14 +86,14 @@ export default async function build(
const __selectivePageBuilding = pages ? Boolean(pages.length) : false
let pagePaths
if (__selectivePageBuilding) {
if (config.target !== 'serverless') {
throw new Error(
'Cannot use selective page building without the serverless target.'
)
}
if (__selectivePageBuilding && config.target !== 'serverless') {
throw new Error(
'Cannot use selective page building without the serverless target.'
)
}
let pagePaths
if (__selectivePageBuilding && pages[0] !== '**') {
const explodedPages = flatten<string>(pages.map(p => p.split(','))).map(
p => {
let resolvedPage: string | undefined
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册