deploy-nextjs-example-app

0.0.4 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i deploy-nextjs-example-app

Weekly Downloads

5

Version

0.0.4

License

MIT

Unpacked Size

111 kB

Total Files

5

Last publish

Collaborators

  • possibilities