diff --git a/packages/cli/src/cli/commands/init.ts b/packages/cli/src/cli/commands/init.ts index 27c8b8e7..f01bd98b 100644 --- a/packages/cli/src/cli/commands/init.ts +++ b/packages/cli/src/cli/commands/init.ts @@ -144,10 +144,7 @@ const init = async ({ : template === "vue" ? ".env" : ".env.local"; - await sh("cp", [ - path.join(dirName, ".env.example"), - path.join(dirName, localEnvFileName), - ]); + await sh("cp", [".env.example", localEnvFileName]); if (!skipInstallation) { // Installing dependencies