/server-only

What is a Server-Only Package in Next.js, and How to Use It?

Primary LanguageTypeScript

Server Only

It is a next.js-based demo application that shows how to use the server-only package.


Getting Started

The first step is to clone the next error handling project with a git command.

git clone  https://github.com/officialrajdeepsingh/server-only.git 

# change folder
cd server-only

The next step is to install the Node Package Using the Node package manager.

pnpm install
# or
yarn install
# or
npm install

Lastly, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.