fix(schema): allow ignorePrefix to be changed (#20202)

This commit is contained in:
Harlan Wilton 2023-04-11 20:55:25 +07:00 committed by GitHub
parent 89ab2e522d
commit 4da289d150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,7 +331,9 @@ export default defineUntypedSchema({
* Any file in `pages/`, `layouts/`, `middleware/` or `store/` will be ignored during
* building if its filename starts with the prefix specified by `ignorePrefix`.
*/
ignorePrefix: '-',
ignorePrefix: {
$resolve: (val) => val ?? '-',
},
/**
* More customizable than `ignorePrefix`: all files matching glob patterns specified