diff --git a/src/node/config.ts b/src/node/config.ts index 8484b76a..24552e1e 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -74,7 +74,7 @@ export async function resolveConfig( const site = await resolveSiteData(root, userConfig) const srcDir = normalizePath(path.resolve(root, userConfig.srcDir || '.')) const assetsDir = userConfig.assetsDir - ? userConfig.assetsDir.replace(/(^\.?\/|\/$)/g, '') + ? userConfig.assetsDir.replace(/^\.?\/|\/$/g, '') : 'assets' const outDir = userConfig.outDir ? normalizePath(path.resolve(root, userConfig.outDir))