This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying src/pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in src/pages/api/hello.ts
.
The src/pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Create a new branch under name
- If feature change
feat/[featute-name]
- If bug fix
fix/[bug-name]
- If there major changes to dev env or prod env
chore/[change type]
<type>(<scope?>): <description>
<body?>
<footer?>
A good commit message should describe what changed and why.
fix: don't overwrite prevent default
feat(core): add restrict mode
docs: update the molecule description
build Affects the build system ot external dependencies
chore Other changes that don't modify src or test fiels
ci Changes CI configaration files and scripts.
docs Adds or alters documentation.
feat Adds a new feature
fix Solves a bug
perf Improves performance.
refactor Rewrites code without feature, performance or bug changes.
revert Reverts a previous commit.
style Improves code formatting, white-space.
test Add or modfies tests.
Learn more on https://www.conventionalcommits.org/en/v1.0.0/ > https://commitlint.js.org/#/
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.