diff --git a/src/cli/generate.ts b/src/cli/generate.ts index b674950..53a347b 100644 --- a/src/cli/generate.ts +++ b/src/cli/generate.ts @@ -36,7 +36,10 @@ export const generate = ( const filesToGenerate: FileToGenerate[] = []; astroPagesFullPaths.forEach(async function (astroFileFullPath: string) { - const astroFilePath = astroFileFullPath.replace(resolve(inputPath), ""); + const astroFilePath = resolve(astroFileFullPath).replace( + resolve(inputPath), + "" + ); const inputFilePath = showDefaultLocale ? [inputPath, defaultLocale, astroFilePath].join("/")