deploy-nextjs-example-app

v0.0.4
Deploys a [Next.js](https://nextjs.org/docs) library's `./example` app on [now.sh](https://zeit.co/docs).

Deploy Next.js Next.js example app

Deploys a Next.js library's ./example app on now.sh.

The app is copied to a temporary directory where it is prepared before now is invoked. The main purpose of this script is to workaround Next's inability1 to work with symlinked (or file:.. dependencies when deployed to now.

Install

yarn global add deploy-nextjs-example-app

Usage

deploy-nextjs-example-app

To also run now ln also an --alias CLI flag can be used

deploy-nextjs-example-app --alias

Is this really necessary?

This seems necessary based on my experience (see summary above) but I would be excited to learn that I'm wrong and there's an easy way to do deploy a Next.js app to now.sh that lives in a repo subdirectory and depends on another npm package located in the same repo. Please reach out to me at [email protected] if you can help, thanks!

npm i deploy-nextjs-example-app

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 3/9/2019

Downloads

Maintainers