Skip to content

v0.2.0

Choose a tag to compare

@adnankurt16 adnankurt16 released this 14 Dec 07:09
· 10 commits to main since this release

What's New

Local Standalone Preparation (prepareLocally)

New prepareLocally option (default: true) that copies public/ and .next/static/ into .next/standalone/ locally after build.

Benefits:

  • Upload only .next/standalone/ to server (single folder)
  • No duplicate public/, static/, or package.json on server
  • Cleaner server directory structure
  • Slightly faster uploads (less files)

Breaking Changes

  • Default include list changed from [".next/standalone/", ".next/static/", "public/", "package.json"] to [".next/standalone/"]
  • If you have custom include in your config, you may need to update it

Migration

If you want the old behavior, set prepareLocally: false in your config:

build: {
  prepareLocally: false,
},
upload: {
  include: [".next/standalone/", ".next/static/", "public/", "package.json"],
}