rsnext/contributing/examples/run-example-apps.md
Will Binns-Smith d9eb29a9fa
Recommend next-with-deps for running examples (#44667)
Depends on https://github.com/vercel/next.js/pull/44666

This will install `package.json` dependencies in examples before running them.
2023-01-06 21:51:45 +00:00

410 B

Running Example Apps

Running examples can be done with:

pnpm next-with-deps ./examples/basic-css/

To figure out which pages are available for the given example, you can run:

EXAMPLE=./test/integration/basic
(\
  cd $EXAMPLE/pages; \
  find . -type f \
  | grep -v '\.next' \
  | sed 's#^\.##' \
  | sed 's#index\.js##' \
  | sed 's#\.js$##' \
  | xargs -I{} echo localhost:3000{} \
)