Skip to content

panlw/using-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Next.js with PNPM

Create App

#apt or yum install libvips
pnpm init next-app <project-name>
cd <project-name>
rm -rf node_modules package-lock.json
pnpm i

pnpm dev

Build SPA

add command:

{
  "scripts": {
    "spa": "next build && next export"
  }
}

run command

pnpm spa

use ./out by ran or serve

ran -r ./out