diff --git a/lib/next-pkg.js b/lib/next-pkg.js index 7d4aa0b..26f47af 100755 --- a/lib/next-pkg.js +++ b/lib/next-pkg.js @@ -14,7 +14,7 @@ const binaryFilePath = const copyTmpFiles = async () => { const spinner = ora('Copying extended next-pkg server').start() try { - await fs.copy(path.resolve(__dirname, '../lib/server.js'), finalServerPath) + await fs.copy(path.resolve(__dirname, 'server/index.js'), finalServerPath) spinner.succeed('Extended next-pkg server copied') } catch (error) { spinner.fail(`Error copying temporary files: ${error}`)