0.0.4 • Published 5 years ago

deploy-nextjs-example-app v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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!