Publishing

Documentation for deploying your application

Removing Now Support

New Lore projects include support for deploy to Now.

The intention behind doing that is not to push the service, but to recognize that deploying your application is a critical step in application development, and it would feel like a large gap if the documentation for the framework didn't at least acknowledge and discuss the process.

The reason Now is used to demonstrate that process is because it provides some excellent features for deploying static applications, which would make it a great choice (and a pleasant experience) for first-time developers.

However, if you don't want to deploy your project to Now, you can easily remove that support by following the steps below:

1. Delete the .now Folder

At the root of your project is a folder named .now with a single file called package.json inside.

/.now
  |-- package.json
...

Delete this folder.

2. Remove Package.json Scripts

Next, open the package.json file, and locate these scripts:

"scripts": {
  "deploy": "npm run now:copy && now dist",
  "deploy:production": "npm run build:production && npm run deploy",
  "now:copy": "cp .now/package.json dist/package.json",
},

Delete these scripts.

3. Delete now from devDependencies

Next, locate the now package in the package.json file:

"devDependencies": {
  "now": "^11.1.4",
}

Delete this line.

Done!

All traces of Now have now been removed from your project.