diff --git a/packages/schema/src/config/common.ts b/packages/schema/src/config/common.ts index a8d50cde5a..5940f1c2a9 100644 --- a/packages/schema/src/config/common.ts +++ b/packages/schema/src/config/common.ts @@ -421,7 +421,7 @@ export default defineUntypedSchema({ '~~': rootDir, '@@': rootDir, [basename(assetsDir)]: join(srcDir, assetsDir), - [basename(publicDir)]: join(srcDir, publicDir), + [basename(publicDir)]: resolve(srcDir, publicDir), ...val, } },