Skip to content

Commit

Permalink
fix(nextjs): Update package.json build scripts (#17424)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham authored Jun 5, 2023
1 parent 1bba749 commit 1b7cb39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export default async function buildExecutor(
isProduction: !options.includeDevDependenciesInPackageJson, // By default we remove devDependencies since this is a production build.
}
);

// Update `package.json` to reflect how users should run the build artifacts
builtPackageJson.scripts = {
start: 'next start',
};

updatePackageJson(builtPackageJson, context);
writeJsonFile(`${options.outputPath}/package.json`, builtPackageJson);

Expand Down

1 comment on commit 1b7cb39

@vercel
Copy link

@vercel vercel bot commented on 1b7cb39 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.