npm.io
0.0.4 • Published 7 years agoCLI

deploy-nextjs-example-app

Licence
MIT
Version
0.0.4
Deps
3
Size
108 kB
Vulns
0
Weekly
0

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 mikebannister@gmail.com if you can help, thanks!