Skip to content

Lycolia/ts-next-boilerplate

Repository files navigation

{projectName}

  • {description}

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode
Open http://localhost:3000 to view it in the browser

The page will reload if you make edits
You will also see any lint errors in the console.

npm run build

Deployed the app for production assets to the out/ folder
It correctly bundles React in production mode and optimizes the build for the best performance

npm run serve

Runs the Next.js production server for SSG

npm run fix

Runs formatter.

npm run lint

Runs linter(detect only, does not fixer) of ESLint and TSC, that will prevent bugs!

npm test

Launches the test runner by watch mode

npm run headless-test

Launches the test and lint for headless mode

npm run coverage

Getting test coverage

npm run storybook

Starts Storybook in development mode

npm run build-storybook

Publish Storybook

About next.config.js

basePath

Settings for hosting Next.js on sub directory

assetPrefix

Settings for customize _next directory path

  • This is useful, if have multiple Next.js instances in the same directory
  • Reference