Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

This project shows how we got Stencil Web Components working inside the Next.js app directory.

License

Notifications You must be signed in to change notification settings

smartive/stencil-nextjs-example

Repository files navigation

Stencil within Next.js App Router Project

This project demonstrates approaches for integrating Stencil Web Components into a Next.js app directory with the help of our custom Stencil output target plugin.

Live Demo: stencil-nextjs-example-app.vercel.app

Local Setup:

  • Install dependencies: npm ci
  • Start development server: npm run dev:app
  • Start with production build: npm run start:app
  • Open browser: http://localhost:3000

Tip

Disable JavaScript and reload the page to see the difference between the rendered components.