2024-04-12 04:07:39 +00:00
|
|
|
# nextjs-package-manager-example-app
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:34:33 +00:00
|
|
|
branch: `nextjs-package-manager/bun`
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:34:33 +00:00
|
|
|
This repo is for testing building `Next.js` app with different package managers. This branch uses [bun](https://bun.sh) as the package manager.
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
## Getting Started
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
First, install the dependencies:
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
```zsh
|
2024-04-12 04:34:33 +00:00
|
|
|
bun install
|
2024-04-12 04:07:39 +00:00
|
|
|
```
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
## Development
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
First, run the development server:
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
```zsh
|
2024-04-12 04:34:33 +00:00
|
|
|
bun dev
|
2024-04-12 04:07:39 +00:00
|
|
|
```
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
## Production
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
To build the app for production, run:
|
2024-04-12 03:57:56 +00:00
|
|
|
|
2024-04-12 04:07:39 +00:00
|
|
|
```zsh
|
2024-04-12 04:34:33 +00:00
|
|
|
bun run build
|
2024-04-12 04:07:39 +00:00
|
|
|
```
|