Spaces:
Sleeping
Sleeping
Hoang Nguyen
commited on
Commit
·
f75d7fa
0
Parent(s):
init app
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .env +20 -0
- .env.production +29 -0
- .github/FUNDING.yml +4 -0
- .github/workflows/CI.yml +115 -0
- .github/workflows/checkly.yml +63 -0
- .github/workflows/crowdin.yml +33 -0
- .github/workflows/release.yml +39 -0
- .gitignore +51 -0
- .husky/commit-msg +2 -0
- .husky/pre-commit +3 -0
- .npmrc +2 -0
- .storybook/main.ts +21 -0
- .storybook/preview.ts +18 -0
- .vscode/extensions.json +14 -0
- .vscode/launch.json +19 -0
- .vscode/settings.json +62 -0
- .vscode/tasks.json +21 -0
- CHANGELOG.md +917 -0
- LICENSE +21 -0
- README.md +522 -0
- checkly.config.ts +48 -0
- codecov.yml +3 -0
- commitlint.config.ts +7 -0
- crowdin.yml +32 -0
- drizzle.config.ts +12 -0
- eslint.config.mjs +58 -0
- lint-staged.config.js +4 -0
- migrations/0000_init-db.sql +6 -0
- migrations/meta/0000_snapshot.json +53 -0
- migrations/meta/_journal.json +13 -0
- next-env.d.ts +5 -0
- next.config.ts +66 -0
- package-lock.json +0 -0
- package.json +142 -0
- playwright.config.ts +64 -0
- postcss.config.js +11 -0
- public/apple-touch-icon.png +0 -0
- public/assets/images/arcjet-dark.svg +1 -0
- public/assets/images/arcjet-light.svg +1 -0
- public/assets/images/better-stack-dark.png +0 -0
- public/assets/images/better-stack-white.png +0 -0
- public/assets/images/checkly-logo-dark.png +0 -0
- public/assets/images/checkly-logo-light.png +0 -0
- public/assets/images/clerk-logo-dark.png +0 -0
- public/assets/images/codecov-dark.svg +23 -0
- public/assets/images/codecov-white.svg +28 -0
- public/assets/images/crowdin-dark.png +0 -0
- public/assets/images/crowdin-white.png +0 -0
- public/assets/images/nextjs-boilerplate-saas.png +0 -0
- public/assets/images/nextjs-boilerplate-sign-in.png +0 -0
.env
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# FIXME: Configure environment variables for your project
|
2 |
+
|
3 |
+
# If you need to build a SaaS application with Stripe subscription payment with checkout page, customer portal, webhook, etc.
|
4 |
+
# You can check out the Next.js Boilerplate SaaS: https://nextjs-boilerplate.com/pro-saas-starter-kit
|
5 |
+
|
6 |
+
# Clerk authentication
|
7 |
+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_cmVsYXhlZC10dXJrZXktNjcuY2xlcmsuYWNjb3VudHMuZGV2JA
|
8 |
+
|
9 |
+
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
|
10 |
+
|
11 |
+
######## [BEGIN] SENSITIVE DATA ######## For security reason, don't update the following variables (secret key) directly in this file.
|
12 |
+
######## Please create a new file named `.env.local`, all environment files ending with `.local` won't be tracked by Git.
|
13 |
+
######## After creating the file, you can add the following variables.
|
14 |
+
# Arcjet security
|
15 |
+
# Get your key from https://launch.arcjet.com/Q6eLbRE
|
16 |
+
# ARCJET_KEY=
|
17 |
+
|
18 |
+
# Clerk authentication
|
19 |
+
CLERK_SECRET_KEY=your_clerk_secret_key
|
20 |
+
######## [END] SENSITIVE DATA
|
.env.production
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# FIXME: Configure environment variables for production
|
2 |
+
|
3 |
+
# If you need to build a SaaS application with Stripe subscription payment with checkout page, customer portal, webhook, etc.
|
4 |
+
# You can check out the Next.js Boilerplate SaaS: https://nextjs-boilerplate.com/pro-saas-starter-kit
|
5 |
+
|
6 |
+
# Hosting
|
7 |
+
# Replace by your domain name
|
8 |
+
# NEXT_PUBLIC_APP_URL=https://example.com
|
9 |
+
|
10 |
+
# Sentry DSN
|
11 |
+
NEXT_PUBLIC_SENTRY_DSN=
|
12 |
+
|
13 |
+
######## [BEGIN] SENSITIVE DATA ######## For security reason, don't update the following variables (secret key) directly in this file.
|
14 |
+
######## Please create a new file named `.env.production.local`, all environment files ending with `.local` won't be tracked by Git.
|
15 |
+
######## After creating the file, you can add the following variables.
|
16 |
+
# Arcjet security
|
17 |
+
# Get your key from https://launch.arcjet.com/Q6eLbRE
|
18 |
+
# ARCJET_KEY=
|
19 |
+
|
20 |
+
# Database
|
21 |
+
# Using an incorrect DATABASE_URL value, Next.js build will timeout and you will get the following error: "because it took more than 60 seconds"
|
22 |
+
# DATABASE_URL=postgresql://postgres@localhost:5432/postgres
|
23 |
+
|
24 |
+
# Error monitoring
|
25 |
+
# SENTRY_AUTH_TOKEN=
|
26 |
+
|
27 |
+
# Logging ingestion
|
28 |
+
# LOGTAIL_SOURCE_TOKEN=
|
29 |
+
######## [END] SENSITIVE DATA
|
.github/FUNDING.yml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
github: ixartz
|
2 |
+
custom:
|
3 |
+
- 'https://nextjs-boilerplate.com/pro-saas-starter-kit'
|
4 |
+
- 'https://nextlessjs.com'
|
.github/workflows/CI.yml
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: CI
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main]
|
6 |
+
pull_request:
|
7 |
+
branches: [main]
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
build:
|
11 |
+
strategy:
|
12 |
+
matrix:
|
13 |
+
node-version: [20.x, 22.x]
|
14 |
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
15 |
+
|
16 |
+
name: Build with ${{ matrix.node-version }}
|
17 |
+
runs-on: ubuntu-latest
|
18 |
+
|
19 |
+
steps:
|
20 |
+
- uses: actions/checkout@v4
|
21 |
+
- name: Use Node.js ${{ matrix.node-version }}
|
22 |
+
uses: actions/setup-node@v4
|
23 |
+
with:
|
24 |
+
node-version: ${{ matrix.node-version }}
|
25 |
+
cache: npm
|
26 |
+
- run: npm ci
|
27 |
+
- run: npm run build
|
28 |
+
|
29 |
+
test:
|
30 |
+
strategy:
|
31 |
+
matrix:
|
32 |
+
node-version: [20.x]
|
33 |
+
|
34 |
+
name: Run all tests
|
35 |
+
runs-on: ubuntu-latest
|
36 |
+
|
37 |
+
steps:
|
38 |
+
- uses: actions/checkout@v4
|
39 |
+
with:
|
40 |
+
fetch-depth: 0 # Retrieve Git history, needed to verify commits
|
41 |
+
- name: Use Node.js ${{ matrix.node-version }}
|
42 |
+
uses: actions/setup-node@v4
|
43 |
+
with:
|
44 |
+
node-version: ${{ matrix.node-version }}
|
45 |
+
cache: npm
|
46 |
+
- run: npm ci
|
47 |
+
|
48 |
+
- name: Build Next.js for E2E tests
|
49 |
+
run: npm run build
|
50 |
+
env:
|
51 |
+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
52 |
+
|
53 |
+
- if: github.event_name == 'pull_request'
|
54 |
+
name: Validate all commits from PR
|
55 |
+
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|
56 |
+
|
57 |
+
- name: Linter
|
58 |
+
run: npm run lint
|
59 |
+
|
60 |
+
- name: Type checking
|
61 |
+
run: npm run check-types
|
62 |
+
|
63 |
+
- name: Run unit tests
|
64 |
+
run: npm run test -- --coverage
|
65 |
+
|
66 |
+
- name: Upload coverage reports to Codecov
|
67 |
+
uses: codecov/codecov-action@v5
|
68 |
+
env:
|
69 |
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
70 |
+
|
71 |
+
- name: Install Playwright (used for Storybook and E2E tests)
|
72 |
+
run: npx playwright install --with-deps
|
73 |
+
|
74 |
+
- name: Run storybook tests
|
75 |
+
run: npm run test-storybook:ci
|
76 |
+
|
77 |
+
- name: Run E2E tests
|
78 |
+
run: npx percy exec -- npm run test:e2e
|
79 |
+
env:
|
80 |
+
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
|
81 |
+
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
|
82 |
+
|
83 |
+
- uses: actions/upload-artifact@v4
|
84 |
+
if: always()
|
85 |
+
with:
|
86 |
+
name: test-results
|
87 |
+
path: test-results/
|
88 |
+
retention-days: 7
|
89 |
+
|
90 |
+
synchronize-with-crowdin:
|
91 |
+
name: GitHub PR synchronize with Crowdin
|
92 |
+
runs-on: ubuntu-latest
|
93 |
+
|
94 |
+
needs: [build, test]
|
95 |
+
if: github.event_name == 'pull_request'
|
96 |
+
|
97 |
+
steps:
|
98 |
+
- uses: actions/checkout@v4
|
99 |
+
with:
|
100 |
+
ref: ${{ github.event.pull_request.head.sha }} # Crowdin Actions needs to push commits to the PR branch, checkout HEAD commit instead of merge commit
|
101 |
+
fetch-depth: 0
|
102 |
+
|
103 |
+
- name: crowdin action
|
104 |
+
uses: crowdin/github-action@v2
|
105 |
+
with:
|
106 |
+
upload_sources: true
|
107 |
+
upload_translations: true
|
108 |
+
download_translations: true
|
109 |
+
create_pull_request: false
|
110 |
+
localization_branch_name: ${{ github.head_ref || github.ref_name }} # explanation here: https://stackoverflow.com/a/71158878
|
111 |
+
commit_message: 'chore: new Crowdin translations by GitHub Action'
|
112 |
+
env:
|
113 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
114 |
+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
115 |
+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
.github/workflows/checkly.yml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Checkly
|
2 |
+
|
3 |
+
on: [deployment_status]
|
4 |
+
|
5 |
+
env:
|
6 |
+
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
|
7 |
+
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }}
|
8 |
+
CHECKLY_TEST_ENVIRONMENT: ${{ github.event.deployment_status.environment }}
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
test-e2e:
|
12 |
+
strategy:
|
13 |
+
matrix:
|
14 |
+
node-version: [20.x]
|
15 |
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
16 |
+
|
17 |
+
# Only run when the deployment was successful
|
18 |
+
if: github.event.deployment_status.state == 'success'
|
19 |
+
|
20 |
+
name: Test E2E on Checkly
|
21 |
+
runs-on: ubuntu-latest
|
22 |
+
timeout-minutes: 10
|
23 |
+
|
24 |
+
steps:
|
25 |
+
- uses: actions/checkout@v4
|
26 |
+
with:
|
27 |
+
ref: '${{ github.event.deployment_status.deployment.ref }}'
|
28 |
+
fetch-depth: 0
|
29 |
+
|
30 |
+
- name: Set branch name # workaround to detect branch name in "deployment_status" actions
|
31 |
+
run: echo "CHECKLY_TEST_REPO_BRANCH=$(git show -s --pretty=%D HEAD | tr -s ',' '\n' | sed 's/^ //' | grep -e 'origin/' | head -1 | sed 's/\origin\///g')" >> $GITHUB_ENV
|
32 |
+
|
33 |
+
- uses: actions/setup-node@v4
|
34 |
+
with:
|
35 |
+
node-version: ${{ matrix.node-version }}
|
36 |
+
cache: npm
|
37 |
+
|
38 |
+
- name: Restore or cache node_modules
|
39 |
+
id: cache-node-modules
|
40 |
+
uses: actions/cache@v4
|
41 |
+
with:
|
42 |
+
path: node_modules
|
43 |
+
key: node-modules-${{ hashFiles('package-lock.json') }}
|
44 |
+
|
45 |
+
- name: Install dependencies
|
46 |
+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
47 |
+
run: npm ci
|
48 |
+
|
49 |
+
- name: Run checks # run the checks passing in the ENVIRONMENT_URL and recording a test session.
|
50 |
+
id: run-checks
|
51 |
+
run: npx checkly test --reporter=github --record
|
52 |
+
env:
|
53 |
+
VERCEL_BYPASS_TOKEN: ${{ secrets.VERCEL_BYPASS_TOKEN }}
|
54 |
+
ENVIRONMENT_URL: ${{ github.event.deployment_status.environment_url }}
|
55 |
+
|
56 |
+
- name: Create summary # export the markdown report to the job summary.
|
57 |
+
id: create-summary
|
58 |
+
run: cat checkly-github-report.md > $GITHUB_STEP_SUMMARY
|
59 |
+
|
60 |
+
- name: Deploy checks # if the test run was successful and we are on Production, deploy the checks
|
61 |
+
id: deploy-checks
|
62 |
+
if: steps.run-checks.outcome == 'success' && github.event.deployment_status.environment == 'Production'
|
63 |
+
run: npx checkly deploy --force
|
.github/workflows/crowdin.yml
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Crowdin Action
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [main] # Run on push to the main branch
|
6 |
+
schedule:
|
7 |
+
- cron: '0 5 * * *' # Run every day at 5am
|
8 |
+
workflow_dispatch: # Run manually
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
synchronize-with-crowdin:
|
12 |
+
name: Synchronize with Crowdin
|
13 |
+
runs-on: ubuntu-latest
|
14 |
+
|
15 |
+
steps:
|
16 |
+
- uses: actions/checkout@v4
|
17 |
+
|
18 |
+
- name: crowdin action
|
19 |
+
uses: crowdin/github-action@v2
|
20 |
+
with:
|
21 |
+
upload_sources: true
|
22 |
+
upload_translations: true
|
23 |
+
download_translations: true
|
24 |
+
localization_branch_name: l10n_crowdin_translations
|
25 |
+
create_pull_request: true
|
26 |
+
pull_request_title: New Crowdin Translations
|
27 |
+
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
|
28 |
+
pull_request_base_branch_name: main
|
29 |
+
commit_message: 'chore: new Crowdin translations by GitHub Action'
|
30 |
+
env:
|
31 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
32 |
+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
33 |
+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
.github/workflows/release.yml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Release
|
2 |
+
|
3 |
+
on:
|
4 |
+
workflow_run:
|
5 |
+
workflows: [CI]
|
6 |
+
types:
|
7 |
+
- completed
|
8 |
+
branches:
|
9 |
+
- main
|
10 |
+
|
11 |
+
jobs:
|
12 |
+
release:
|
13 |
+
strategy:
|
14 |
+
matrix:
|
15 |
+
node-version: [20.x]
|
16 |
+
|
17 |
+
name: Create a new release
|
18 |
+
runs-on: ubuntu-latest
|
19 |
+
|
20 |
+
permissions:
|
21 |
+
contents: write # to be able to publish a GitHub release
|
22 |
+
issues: write # to be able to comment on released issues
|
23 |
+
pull-requests: write # to be able to comment on released pull requests
|
24 |
+
|
25 |
+
steps:
|
26 |
+
- uses: actions/checkout@v4
|
27 |
+
with:
|
28 |
+
fetch-depth: 0
|
29 |
+
- name: Use Node.js ${{ matrix.node-version }}
|
30 |
+
uses: actions/setup-node@v4
|
31 |
+
with:
|
32 |
+
node-version: ${{ matrix.node-version }}
|
33 |
+
cache: npm
|
34 |
+
- run: HUSKY=0 npm ci
|
35 |
+
|
36 |
+
- name: Release
|
37 |
+
env:
|
38 |
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
39 |
+
run: npx semantic-release
|
.gitignore
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
2 |
+
|
3 |
+
# dependencies
|
4 |
+
/node_modules
|
5 |
+
/.pnp
|
6 |
+
.pnp.js
|
7 |
+
|
8 |
+
# Database
|
9 |
+
*.db
|
10 |
+
|
11 |
+
# testing
|
12 |
+
/coverage
|
13 |
+
|
14 |
+
# storybook
|
15 |
+
storybook-static
|
16 |
+
*storybook.log
|
17 |
+
|
18 |
+
# playwright
|
19 |
+
/test-results/
|
20 |
+
/playwright-report/
|
21 |
+
/playwright/.cache/
|
22 |
+
|
23 |
+
# next.js
|
24 |
+
/.next
|
25 |
+
/out
|
26 |
+
|
27 |
+
# cache
|
28 |
+
.swc/
|
29 |
+
|
30 |
+
# production
|
31 |
+
/build
|
32 |
+
|
33 |
+
# misc
|
34 |
+
.DS_Store
|
35 |
+
*.pem
|
36 |
+
Thumbs.db
|
37 |
+
|
38 |
+
# debug
|
39 |
+
npm-debug.log*
|
40 |
+
pnpm-debug.log*
|
41 |
+
yarn-debug.log*
|
42 |
+
yarn-error.log*
|
43 |
+
|
44 |
+
# local env files
|
45 |
+
.env*.local
|
46 |
+
|
47 |
+
# local folder
|
48 |
+
local
|
49 |
+
|
50 |
+
# vercel
|
51 |
+
.vercel
|
.husky/commit-msg
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
cd "$(dirname "$0")/.." && npx --no -- commitlint --edit $1
|
.husky/pre-commit
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
# Disable concurrent to run `check-types` after ESLint in lint-staged
|
3 |
+
cd "$(dirname "$0")/.." && npx --no lint-staged --concurrent false
|
.npmrc
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# WORKAROUND: disable version check for peer dependencies, due to React 19 rc, not officially released yet
|
2 |
+
legacy-peer-deps=true
|
.storybook/main.ts
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { StorybookConfig } from '@storybook/nextjs';
|
2 |
+
|
3 |
+
const config: StorybookConfig = {
|
4 |
+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
5 |
+
addons: [
|
6 |
+
'@storybook/addon-onboarding',
|
7 |
+
'@storybook/addon-links',
|
8 |
+
'@storybook/addon-essentials',
|
9 |
+
'@storybook/addon-interactions',
|
10 |
+
],
|
11 |
+
framework: {
|
12 |
+
name: '@storybook/nextjs',
|
13 |
+
options: {},
|
14 |
+
},
|
15 |
+
staticDirs: ['../public'],
|
16 |
+
core: {
|
17 |
+
disableTelemetry: true,
|
18 |
+
},
|
19 |
+
};
|
20 |
+
|
21 |
+
export default config;
|
.storybook/preview.ts
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { Preview } from '@storybook/react';
|
2 |
+
import '../src/styles/global.css';
|
3 |
+
|
4 |
+
const preview: Preview = {
|
5 |
+
parameters: {
|
6 |
+
controls: {
|
7 |
+
matchers: {
|
8 |
+
color: /(background|color)$/i,
|
9 |
+
date: /Date$/i,
|
10 |
+
},
|
11 |
+
},
|
12 |
+
nextjs: {
|
13 |
+
appDirectory: true,
|
14 |
+
},
|
15 |
+
},
|
16 |
+
};
|
17 |
+
|
18 |
+
export default preview;
|
.vscode/extensions.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"recommendations": [
|
3 |
+
"dbaeumer.vscode-eslint",
|
4 |
+
"mikestead.dotenv",
|
5 |
+
"csstools.postcss",
|
6 |
+
"bradlc.vscode-tailwindcss",
|
7 |
+
"vitest.explorer",
|
8 |
+
"humao.rest-client",
|
9 |
+
"yoavbls.pretty-ts-errors",
|
10 |
+
"ms-playwright.playwright",
|
11 |
+
"github.vscode-github-actions",
|
12 |
+
"lokalise.i18n-ally"
|
13 |
+
]
|
14 |
+
}
|
.vscode/launch.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
// Use IntelliSense to learn about possible attributes.
|
3 |
+
// Hover to view descriptions of existing attributes.
|
4 |
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 |
+
"version": "0.2.0",
|
6 |
+
"configurations": [
|
7 |
+
{
|
8 |
+
"name": "Next.js: debug full stack",
|
9 |
+
"type": "node-terminal",
|
10 |
+
"request": "launch",
|
11 |
+
"command": "npm run dev",
|
12 |
+
"serverReadyAction": {
|
13 |
+
"pattern": "- Local:.+(https?://.+)",
|
14 |
+
"uriFormat": "%s",
|
15 |
+
"action": "debugWithChrome"
|
16 |
+
}
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
.vscode/settings.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"editor.tabSize": 2,
|
3 |
+
"editor.detectIndentation": false,
|
4 |
+
"search.exclude": {
|
5 |
+
"package-lock.json": true
|
6 |
+
},
|
7 |
+
|
8 |
+
// TypeScript
|
9 |
+
"typescript.tsdk": "node_modules/typescript/lib", // Use the workspace version of TypeScript
|
10 |
+
"typescript.enablePromptUseWorkspaceTsdk": true, // For security reasons it's require that users opt into using the workspace version of typescript
|
11 |
+
"typescript.preferences.autoImportFileExcludePatterns": [
|
12 |
+
// useRouter should be imported from `next/navigation` instead of `next/router`
|
13 |
+
"next/router.d.ts",
|
14 |
+
"next/dist/client/router.d.ts",
|
15 |
+
// give priority for Link to next/link instead of lucide-react
|
16 |
+
"lucide-react"
|
17 |
+
],
|
18 |
+
"typescript.preferences.preferTypeOnlyAutoImports": true, // Prefer type-only imports
|
19 |
+
|
20 |
+
// Vitest
|
21 |
+
"testing.automaticallyOpenTestResults": "neverOpen", // Don't open the test results automatically
|
22 |
+
|
23 |
+
// I18n
|
24 |
+
"i18n-ally.localesPaths": ["src/locales"],
|
25 |
+
"i18n-ally.keystyle": "nested",
|
26 |
+
|
27 |
+
// Disable the default formatter, use ESLint instead
|
28 |
+
"prettier.enable": false,
|
29 |
+
"editor.formatOnSave": false,
|
30 |
+
|
31 |
+
// Auto fix with ESLint on save
|
32 |
+
"editor.codeActionsOnSave": [
|
33 |
+
"source.addMissingImports",
|
34 |
+
"source.fixAll.eslint"
|
35 |
+
],
|
36 |
+
|
37 |
+
// Enable eslint for all supported languages
|
38 |
+
"eslint.format.enable": true,
|
39 |
+
"eslint.validate": [
|
40 |
+
"javascript",
|
41 |
+
"javascriptreact",
|
42 |
+
"typescript",
|
43 |
+
"typescriptreact",
|
44 |
+
"vue",
|
45 |
+
"html",
|
46 |
+
"markdown",
|
47 |
+
"json",
|
48 |
+
"jsonc",
|
49 |
+
"yaml",
|
50 |
+
"toml",
|
51 |
+
"xml",
|
52 |
+
"gql",
|
53 |
+
"graphql",
|
54 |
+
"astro",
|
55 |
+
"css",
|
56 |
+
"less",
|
57 |
+
"scss",
|
58 |
+
"pcss",
|
59 |
+
"postcss",
|
60 |
+
"github-actions-workflow"
|
61 |
+
]
|
62 |
+
}
|
.vscode/tasks.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
3 |
+
// for the documentation about the tasks.json format
|
4 |
+
"version": "2.0.0",
|
5 |
+
"tasks": [
|
6 |
+
{
|
7 |
+
"label": "Project wide type checking with TypeScript",
|
8 |
+
"type": "npm",
|
9 |
+
"script": "check-types",
|
10 |
+
"problemMatcher": ["$tsc"],
|
11 |
+
"group": {
|
12 |
+
"kind": "build",
|
13 |
+
"isDefault": true
|
14 |
+
},
|
15 |
+
"presentation": {
|
16 |
+
"clear": true,
|
17 |
+
"reveal": "never"
|
18 |
+
}
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
CHANGELOG.md
ADDED
@@ -0,0 +1,917 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## [3.60.5](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.60.4...v3.60.5) (2024-12-20)
|
2 |
+
|
3 |
+
|
4 |
+
### Bug Fixes
|
5 |
+
|
6 |
+
* add new message in hello component ([5ef2fc5](https://github.com/ixartz/Next-js-Boilerplate/commit/5ef2fc52f0cc3d7b6a8754832f4dda9127098df5))
|
7 |
+
* use new vitest vscode setting for preventing automatic opening of the test results ([36027db](https://github.com/ixartz/Next-js-Boilerplate/commit/36027dba2d65fd5faf30504cae88735f438b20cd))
|
8 |
+
|
9 |
+
## [3.60.4](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.60.3...v3.60.4) (2024-12-16)
|
10 |
+
|
11 |
+
|
12 |
+
### Bug Fixes
|
13 |
+
|
14 |
+
* remove custom framework configuration file for i18n ally ([a681b13](https://github.com/ixartz/Next-js-Boilerplate/commit/a681b13e7ddd78afd1cc9b2c02d9797d71c8f992))
|
15 |
+
|
16 |
+
## [3.60.3](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.60.2...v3.60.3) (2024-12-10)
|
17 |
+
|
18 |
+
|
19 |
+
### Bug Fixes
|
20 |
+
|
21 |
+
* update to Next.js 15.1 ([a89c63e](https://github.com/ixartz/Next-js-Boilerplate/commit/a89c63eb26f6cb6fb4bff3bd01cf8628926386f9))
|
22 |
+
|
23 |
+
## [3.60.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.60.1...v3.60.2) (2024-12-05)
|
24 |
+
|
25 |
+
|
26 |
+
### Bug Fixes
|
27 |
+
|
28 |
+
* upgrade to react 19 stable version ([0f744e3](https://github.com/ixartz/Next-js-Boilerplate/commit/0f744e3f5525399da9adbf659889f2cf51f9bb4d))
|
29 |
+
|
30 |
+
## [3.60.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.60.0...v3.60.1) (2024-11-26)
|
31 |
+
|
32 |
+
|
33 |
+
### Bug Fixes
|
34 |
+
|
35 |
+
* update Arcjet integration and improve security checks ([516b75e](https://github.com/ixartz/Next-js-Boilerplate/commit/516b75e964f902f078ae4dc44f488796735769fb))
|
36 |
+
|
37 |
+
# [3.60.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.59.2...v3.60.0) (2024-11-26)
|
38 |
+
|
39 |
+
|
40 |
+
### Bug Fixes
|
41 |
+
|
42 |
+
* change Arcjet URL ([ac670a5](https://github.com/ixartz/Next-js-Boilerplate/commit/ac670a54735be9955404e9e3fc716aed39fdedc1))
|
43 |
+
|
44 |
+
|
45 |
+
### Features
|
46 |
+
|
47 |
+
* implement Arcjet security bot detection & Shield WAF ([96d95f4](https://github.com/ixartz/Next-js-Boilerplate/commit/96d95f45aff0df60ad9b6f1d64dd9b58098ea9ab))
|
48 |
+
|
49 |
+
## [3.59.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.59.1...v3.59.2) (2024-11-21)
|
50 |
+
|
51 |
+
|
52 |
+
### Bug Fixes
|
53 |
+
|
54 |
+
* switch back to en/default not loading ([cf7688a](https://github.com/ixartz/Next-js-Boilerplate/commit/cf7688ac4e19f9efa9e78508811bb06c785a9790))
|
55 |
+
|
56 |
+
## [3.59.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.59.0...v3.59.1) (2024-11-20)
|
57 |
+
|
58 |
+
|
59 |
+
### Bug Fixes
|
60 |
+
|
61 |
+
* set default lang for global error page from i18n routing ([e148bea](https://github.com/ixartz/Next-js-Boilerplate/commit/e148bea9d6290df220a73110f878132e4f818137))
|
62 |
+
* static rendering for sign in and sign up page ([2b6e75f](https://github.com/ixartz/Next-js-Boilerplate/commit/2b6e75faa0f2d04119c1ea107f09671773cab37f))
|
63 |
+
|
64 |
+
# [3.59.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.58.2...v3.59.0) (2024-11-15)
|
65 |
+
|
66 |
+
|
67 |
+
### Bug Fixes
|
68 |
+
|
69 |
+
* add await for header function and support only lang en for global error ([9ec5886](https://github.com/ixartz/Next-js-Boilerplate/commit/9ec588657191c0eb187e909e21f739043f9f8761))
|
70 |
+
* add legacy-peer-deps to support next.js 15 and react 19 ([bb9c803](https://github.com/ixartz/Next-js-Boilerplate/commit/bb9c80363383e109c71eeab30e2ba7011294924e))
|
71 |
+
* add onRequestError in instrumentations file to capture nested rsc errors ([4f144d0](https://github.com/ixartz/Next-js-Boilerplate/commit/4f144d03aba073e879a30a477c563cb6576bc3b4))
|
72 |
+
* add sponsor component in dashboard ([c172a5e](https://github.com/ixartz/Next-js-Boilerplate/commit/c172a5ef6c1ec731d297346d05f6ee4589127826))
|
73 |
+
* create a routing variables used by next-intl ([2ced1d8](https://github.com/ixartz/Next-js-Boilerplate/commit/2ced1d8f8467686a02e34124094f887210b4139a))
|
74 |
+
* enable react component annotation in Sentry ([87fa2fb](https://github.com/ixartz/Next-js-Boilerplate/commit/87fa2fb338130adc9ce0c1d017837c3c1d2c3d25))
|
75 |
+
* migrate clerk codebase to next.js 15 with await ([bb098ac](https://github.com/ixartz/Next-js-Boilerplate/commit/bb098acb68b4337112446c94959d3d2aed5aed89))
|
76 |
+
* migrate the codebase to use await params ([886a19e](https://github.com/ixartz/Next-js-Boilerplate/commit/886a19ee7141211a9c6c33c256246a7be73d3065))
|
77 |
+
* remove storybook until it support Next.js 15 ([2505167](https://github.com/ixartz/Next-js-Boilerplate/commit/25051670ca264feee02e186b23b9538c7a434cc1))
|
78 |
+
* remove storybook until it support Next.js 15 ([9fe8001](https://github.com/ixartz/Next-js-Boilerplate/commit/9fe800195ba889c5e0cd343f2a3799efd9f1b9c1))
|
79 |
+
* stop using jiti and use typescript for next.js config ([34a74fe](https://github.com/ixartz/Next-js-Boilerplate/commit/34a74fe20e30924b1536365a649d89e5fa476537))
|
80 |
+
* update CI workflow to use Node.js 22.x instead of 22.6 ([4215f37](https://github.com/ixartz/Next-js-Boilerplate/commit/4215f3705393a0fc5e503295c3e469d01fa8de2c))
|
81 |
+
* update image to respect default image ratio ([45689d2](https://github.com/ixartz/Next-js-Boilerplate/commit/45689d28459a389dc4b47bab133f28bda8f02702))
|
82 |
+
* update middleware matcher and use routermatcher for signup and sign in page ([96c42ae](https://github.com/ixartz/Next-js-Boilerplate/commit/96c42ae8c935ee6d3f3ca765196cca90e65dd614))
|
83 |
+
* use react 19 release candidate ([9387d49](https://github.com/ixartz/Next-js-Boilerplate/commit/9387d4963014b36d008b1d2efbcec196e0d78d17))
|
84 |
+
|
85 |
+
|
86 |
+
### Features
|
87 |
+
|
88 |
+
* update to next.js 15 along other npm dependencies ([bbcece3](https://github.com/ixartz/Next-js-Boilerplate/commit/bbcece334c44c314df4cb7736ac30d29b523d463))
|
89 |
+
|
90 |
+
|
91 |
+
### Reverts
|
92 |
+
|
93 |
+
* add back BaseTemplate storbyook file ([9884038](https://github.com/ixartz/Next-js-Boilerplate/commit/988403883c0bacd9074e2671a3765166742a6dd2))
|
94 |
+
* add back Storybook ([229ba7e](https://github.com/ixartz/Next-js-Boilerplate/commit/229ba7e6941e9415e64e6957d1a3163d0fd26082))
|
95 |
+
|
96 |
+
## [3.58.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.58.1...v3.58.2) (2024-10-17)
|
97 |
+
|
98 |
+
|
99 |
+
### Bug Fixes
|
100 |
+
|
101 |
+
* remove hydration error generated by Sentry Spotlight.js ([8b14146](https://github.com/ixartz/Next-js-Boilerplate/commit/8b14146bf6fe0eb288c2bcb8b701ca38b5dcec24))
|
102 |
+
|
103 |
+
## [3.58.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.58.0...v3.58.1) (2024-10-01)
|
104 |
+
|
105 |
+
|
106 |
+
### Bug Fixes
|
107 |
+
|
108 |
+
* simply the counter Route handler by removing try-catch block and improve readability in form ([f777914](https://github.com/ixartz/Next-js-Boilerplate/commit/f7779146e954a86c311577c24e2e80a846c36d46))
|
109 |
+
* use faker instead of Math.random, simply playwright config ([52c5d3f](https://github.com/ixartz/Next-js-Boilerplate/commit/52c5d3f3447ea26b730a284d2770bbf065caa058))
|
110 |
+
|
111 |
+
# [3.58.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.57.0...v3.58.0) (2024-09-15)
|
112 |
+
|
113 |
+
|
114 |
+
### Features
|
115 |
+
|
116 |
+
* add drizzle into the singleton only in dev to persist db connection ([aefe3d8](https://github.com/ixartz/Next-js-Boilerplate/commit/aefe3d838ede52a606869631257aa21a3e88a299))
|
117 |
+
|
118 |
+
# [3.57.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.56.2...v3.57.0) (2024-09-14)
|
119 |
+
|
120 |
+
|
121 |
+
### Features
|
122 |
+
|
123 |
+
* disable submit button when submitting form ([0247937](https://github.com/ixartz/Next-js-Boilerplate/commit/02479379326ff3b5b16f016de3241efcc5a49fd5))
|
124 |
+
|
125 |
+
## [3.56.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.56.1...v3.56.2) (2024-09-12)
|
126 |
+
|
127 |
+
|
128 |
+
### Bug Fixes
|
129 |
+
|
130 |
+
* rewrite index page of the boilerplate ([9456ede](https://github.com/ixartz/Next-js-Boilerplate/commit/9456ede93122e2230f6cd17114ac9893578e242d))
|
131 |
+
|
132 |
+
## [3.56.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.56.0...v3.56.1) (2024-09-11)
|
133 |
+
|
134 |
+
|
135 |
+
### Bug Fixes
|
136 |
+
|
137 |
+
* enable coverage for unit testing ([eb4534c](https://github.com/ixartz/Next-js-Boilerplate/commit/eb4534c1a30dd90943a35c1583ff9c0c60c9520d))
|
138 |
+
* update crowdin image, load the image locally ([5b404b1](https://github.com/ixartz/Next-js-Boilerplate/commit/5b404b1a1b451b6ea839f4a72e002efb8a8b0cf8))
|
139 |
+
* use default reporter for vitest ([67e766a](https://github.com/ixartz/Next-js-Boilerplate/commit/67e766a346a6f4eb06b146b6102b3751fc3e22ad))
|
140 |
+
|
141 |
+
# [3.56.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.55.3...v3.56.0) (2024-09-09)
|
142 |
+
|
143 |
+
|
144 |
+
### Bug Fixes
|
145 |
+
|
146 |
+
* add missing file ([54c343b](https://github.com/ixartz/Next-js-Boilerplate/commit/54c343b93a0555b60c1e7f000002f57c480694e6))
|
147 |
+
|
148 |
+
|
149 |
+
### Features
|
150 |
+
|
151 |
+
* use counter instead of guestbook, make the boilerplate easier to use ([3e6b0b8](https://github.com/ixartz/Next-js-Boilerplate/commit/3e6b0b86dfa8b0ef65c71830036021faa74180c5))
|
152 |
+
|
153 |
+
## [3.55.3](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.55.2...v3.55.3) (2024-08-21)
|
154 |
+
|
155 |
+
|
156 |
+
### Bug Fixes
|
157 |
+
|
158 |
+
* update checkly configuration and use playwright baseURl in Checkly ([4a458f3](https://github.com/ixartz/Next-js-Boilerplate/commit/4a458f328f100f427007ec9bd5c7a02e45c55a12))
|
159 |
+
|
160 |
+
## [3.55.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.55.1...v3.55.2) (2024-08-20)
|
161 |
+
|
162 |
+
|
163 |
+
### Bug Fixes
|
164 |
+
|
165 |
+
* add crowdin synchronize in CI action ([9402e5e](https://github.com/ixartz/Next-js-Boilerplate/commit/9402e5ee4c3e2b8dcb42fe38425b5e93247347c3))
|
166 |
+
* automatically sync translation with Crowdin for each PR ([d4ea7d5](https://github.com/ixartz/Next-js-Boilerplate/commit/d4ea7d5ed3e06f468c0cbd57a343c2925672fa1f))
|
167 |
+
* automatically sync translation with Crowdin for each PR ([eeb4216](https://github.com/ixartz/Next-js-Boilerplate/commit/eeb421668bcd0dc3fe09c8e9dea8c194e02207e2))
|
168 |
+
* checkout HEAD commit instead of the merge commit ([60bfd65](https://github.com/ixartz/Next-js-Boilerplate/commit/60bfd65d83e6e148c47703f4a94e11e1858d70c2))
|
169 |
+
* git checkout history in crowdin pr sync action ([5a2fedf](https://github.com/ixartz/Next-js-Boilerplate/commit/5a2fedf951f11c5d4e911e1b9c94dd1018d78df6))
|
170 |
+
* only run crowdin pr sync when CI workflow pass ([cc4a9a8](https://github.com/ixartz/Next-js-Boilerplate/commit/cc4a9a80c5c7ffa42bc0ad4a843f037f249ca423))
|
171 |
+
* upgrade GitHub actions dependencies ([7b5edfe](https://github.com/ixartz/Next-js-Boilerplate/commit/7b5edfe8ad7fad28e66a8ce92d63d2dd3e9dfbbe))
|
172 |
+
|
173 |
+
## [3.55.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.55.0...v3.55.1) (2024-08-20)
|
174 |
+
|
175 |
+
|
176 |
+
### Bug Fixes
|
177 |
+
|
178 |
+
* resolve lint sort conflicts ([b9d3de1](https://github.com/ixartz/Next-js-Boilerplate/commit/b9d3de1212b6b77cd61277edce354c290fc3fd86))
|
179 |
+
* resolve lint sort conflicts with simple-import-sort ([544c541](https://github.com/ixartz/Next-js-Boilerplate/commit/544c54197ee74930c01b0d28cfd250c6bc384080))
|
180 |
+
|
181 |
+
# [3.55.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.54.0...v3.55.0) (2024-08-19)
|
182 |
+
|
183 |
+
|
184 |
+
### Features
|
185 |
+
|
186 |
+
* remove target='blank' in badge ([b033c2e](https://github.com/ixartz/Next-js-Boilerplate/commit/b033c2e1f4ebdff7914ea81830e1c54b5b1a3d96))
|
187 |
+
* use new ESLint flat config ([8f31536](https://github.com/ixartz/Next-js-Boilerplate/commit/8f31536f29ce6599fb9ccbfae8dc176080a9215d))
|
188 |
+
|
189 |
+
|
190 |
+
### Reverts
|
191 |
+
|
192 |
+
* add back lint-staged file configuration ([5c51a94](https://github.com/ixartz/Next-js-Boilerplate/commit/5c51a94147c325ec2a10ea1c7a8f2060397ec32b))
|
193 |
+
* comment pre-commit script ([e9d6c7a](https://github.com/ixartz/Next-js-Boilerplate/commit/e9d6c7a34c1dad2b1fb706c300646f098b6437b1))
|
194 |
+
* pre-commit script used by Husky ([21acf33](https://github.com/ixartz/Next-js-Boilerplate/commit/21acf33b96dab666587688ea1dfb08c7f5f1ddf4))
|
195 |
+
* use default code from next-intl in global.d.ts ([0343b2f](https://github.com/ixartz/Next-js-Boilerplate/commit/0343b2f043480716866350b221a7e986759e6dc6))
|
196 |
+
|
197 |
+
# [3.54.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.53.0...v3.54.0) (2024-07-23)
|
198 |
+
|
199 |
+
|
200 |
+
### Features
|
201 |
+
|
202 |
+
* add NODE_ENV in t3 env ([17c23f9](https://github.com/ixartz/Next-js-Boilerplate/commit/17c23f9bea037da9ab2ae93b9ecc883a919d9723))
|
203 |
+
* add Sentry configuration in environment files and fix meta journal error in production ([2243510](https://github.com/ixartz/Next-js-Boilerplate/commit/2243510438d8b4e0670a309605852c817a6d8492))
|
204 |
+
* enable static rendering with i18n ([e6ec268](https://github.com/ixartz/Next-js-Boilerplate/commit/e6ec2682de7d8a5f1b92be67f1fa1499f800f624))
|
205 |
+
* middlware should not run for monitoring endpoint ([34b3c0c](https://github.com/ixartz/Next-js-Boilerplate/commit/34b3c0cb2cd732f937755e950197f03c765bdd15))
|
206 |
+
* use defineConfig in drizzle.config.ts ([48893e5](https://github.com/ixartz/Next-js-Boilerplate/commit/48893e535bb4889dd83c97aa809a6081b1e9afbd))
|
207 |
+
|
208 |
+
# [3.53.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.52.0...v3.53.0) (2024-06-26)
|
209 |
+
|
210 |
+
|
211 |
+
### Features
|
212 |
+
|
213 |
+
* add updateAt and createdAt attribute in guestbook ([80d369a](https://github.com/ixartz/Next-js-Boilerplate/commit/80d369a9d374cb5557356d9ea794719e3a1f59d5))
|
214 |
+
* create a new environement file for production ([988a051](https://github.com/ixartz/Next-js-Boilerplate/commit/988a051515666e7698a42f066198e7eb8dd44f32))
|
215 |
+
* switch to Postgres in Drizzle ORM ([1d725e8](https://github.com/ixartz/Next-js-Boilerplate/commit/1d725e8d280e1848e792aba7c8102371b3c038a8))
|
216 |
+
|
217 |
+
# [3.52.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.51.0...v3.52.0) (2024-05-31)
|
218 |
+
|
219 |
+
|
220 |
+
### Features
|
221 |
+
|
222 |
+
* update Drizzle configuration for Drizzle Kit 0.22 and improve ([5159455](https://github.com/ixartz/Next-js-Boilerplate/commit/5159455ab2cfb569702b33a7e2135ec23f32d598))
|
223 |
+
|
224 |
+
# [3.51.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.50.1...v3.51.0) (2024-05-29)
|
225 |
+
|
226 |
+
|
227 |
+
### Features
|
228 |
+
|
229 |
+
* update to Drizzle kit 0.21 version, no need to have dialect in command line ([62aa678](https://github.com/ixartz/Next-js-Boilerplate/commit/62aa6786117637e6b76c97f6c98f7ca6e8c343b0))
|
230 |
+
|
231 |
+
## [3.50.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.50.0...v3.50.1) (2024-05-20)
|
232 |
+
|
233 |
+
|
234 |
+
### Bug Fixes
|
235 |
+
|
236 |
+
* add eslint support for .mts file ([cd58d38](https://github.com/ixartz/Next-js-Boilerplate/commit/cd58d3806206e269d712e0976f4101af26275e44))
|
237 |
+
|
238 |
+
# [3.50.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.49.0...v3.50.0) (2024-05-18)
|
239 |
+
|
240 |
+
|
241 |
+
### Features
|
242 |
+
|
243 |
+
* replace Jest by Vitest for better DX ([2504504](https://github.com/ixartz/Next-js-Boilerplate/commit/25045041bb0af1fc4065ccffdb4d4d9b715c5823))
|
244 |
+
* update to Storybook v8 ([51b20a6](https://github.com/ixartz/Next-js-Boilerplate/commit/51b20a64f8f7a9780cb4c81b6ec2f0d1ac8779c5))
|
245 |
+
|
246 |
+
|
247 |
+
### Reverts
|
248 |
+
|
249 |
+
* reuse vitest.config.mts to avoid warning when running the tests ([f923242](https://github.com/ixartz/Next-js-Boilerplate/commit/f9232425d3cca895bcf3b45355dbee2caaedccce))
|
250 |
+
|
251 |
+
# [3.49.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.48.0...v3.49.0) (2024-05-17)
|
252 |
+
|
253 |
+
|
254 |
+
### Features
|
255 |
+
|
256 |
+
* vscode jest open test result view on test fails and add unauthenticatedUrl in clerk middleware ([2a68124](https://github.com/ixartz/Next-js-Boilerplate/commit/2a681244f834b6ea55bcd5cd3105f8b4a9df4a05))
|
257 |
+
|
258 |
+
# [3.48.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.47.0...v3.48.0) (2024-05-09)
|
259 |
+
|
260 |
+
|
261 |
+
### Features
|
262 |
+
|
263 |
+
* add custom configuration for i18n ally VSCode extension ([46f9459](https://github.com/ixartz/Next-js-Boilerplate/commit/46f945963c02eb29efc802fb0f3b1220b10bdf13))
|
264 |
+
|
265 |
+
# [3.47.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.46.0...v3.47.0) (2024-05-07)
|
266 |
+
|
267 |
+
|
268 |
+
### Features
|
269 |
+
|
270 |
+
* make dashboard without lang protected route in Clerk ([704466b](https://github.com/ixartz/Next-js-Boilerplate/commit/704466bbab40e366d0c1e17b66d7f5f0e97b902b))
|
271 |
+
* run Clerk middleware only needed ([5aeee06](https://github.com/ixartz/Next-js-Boilerplate/commit/5aeee0609bb9abbccf17aa0d2900cffdc7c3a18a))
|
272 |
+
* upgrade to Clerk v5 and use Clerk's Core 2 ([c1978f1](https://github.com/ixartz/Next-js-Boilerplate/commit/c1978f181a7c29e443fe407d91dfb9c2ae147f04))
|
273 |
+
|
274 |
+
|
275 |
+
### Reverts
|
276 |
+
|
277 |
+
* add back process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL ([f8cb9f4](https://github.com/ixartz/Next-js-Boilerplate/commit/f8cb9f441e08ec4f0e4501e4b42b4923adbc01a1))
|
278 |
+
* downgrade React to 18.2 due to testing errors, error raised in Next.js issue [#65161](https://github.com/ixartz/Next-js-Boilerplate/issues/65161) ([1815eb3](https://github.com/ixartz/Next-js-Boilerplate/commit/1815eb3670f53b4d949a06505e8ef3afd4ab0ee5))
|
279 |
+
|
280 |
+
# [3.46.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.45.0...v3.46.0) (2024-04-13)
|
281 |
+
|
282 |
+
|
283 |
+
### Features
|
284 |
+
|
285 |
+
* new turso logo ([3e781fc](https://github.com/ixartz/Next-js-Boilerplate/commit/3e781fc75201a7271a3a640a0b665adb1560add6))
|
286 |
+
* use new Turso tagline ([601ba6b](https://github.com/ixartz/Next-js-Boilerplate/commit/601ba6b2a4beb1a0c6779964d2d654bd3553f044))
|
287 |
+
|
288 |
+
# [3.45.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.44.1...v3.45.0) (2024-04-04)
|
289 |
+
|
290 |
+
|
291 |
+
### Features
|
292 |
+
|
293 |
+
* remove next-sitemap and use the native Next.js sitemap/robots.txt ([135a435](https://github.com/ixartz/Next-js-Boilerplate/commit/135a4350bef905d2a38a8901d42e5fa304fb92bc))
|
294 |
+
|
295 |
+
## [3.44.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.44.0...v3.44.1) (2024-04-03)
|
296 |
+
|
297 |
+
|
298 |
+
### Bug Fixes
|
299 |
+
|
300 |
+
* add Twitter in the index page ([75dfb8b](https://github.com/ixartz/Next-js-Boilerplate/commit/75dfb8bc5ca40446005f8d405add52d09071f62a))
|
301 |
+
* use new VSCode Jest configuration ([e92e4e0](https://github.com/ixartz/Next-js-Boilerplate/commit/e92e4e09c636944d85cec38683738520224acebb))
|
302 |
+
|
303 |
+
# [3.44.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.43.0...v3.44.0) (2024-04-02)
|
304 |
+
|
305 |
+
|
306 |
+
### Features
|
307 |
+
|
308 |
+
* run migration only in development and eslint-disable need to be at the top ([db94f31](https://github.com/ixartz/Next-js-Boilerplate/commit/db94f31615cd5ffcc3739ab56572646f7ce1f177))
|
309 |
+
|
310 |
+
# [3.43.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.42.0...v3.43.0) (2024-03-07)
|
311 |
+
|
312 |
+
|
313 |
+
### Features
|
314 |
+
|
315 |
+
* use eslintrc.json and give release.yml permission in GitHub Actions ([a329518](https://github.com/ixartz/Next-js-Boilerplate/commit/a32951811e157696ab915eebd6b71b09f49ccb83))
|
316 |
+
|
317 |
+
# [3.42.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.41.0...v3.42.0) (2024-02-22)
|
318 |
+
|
319 |
+
|
320 |
+
### Features
|
321 |
+
|
322 |
+
* remove import React when it's not needed ([a7082d3](https://github.com/ixartz/Next-js-Boilerplate/commit/a7082d3492d9a426218829f86554b2aeda9da8fd))
|
323 |
+
|
324 |
+
# [3.41.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.40.0...v3.41.0) (2024-02-09)
|
325 |
+
|
326 |
+
|
327 |
+
### Features
|
328 |
+
|
329 |
+
* add target blank for links going outside ([37ba36e](https://github.com/ixartz/Next-js-Boilerplate/commit/37ba36e5e3815d87cf882dc9aaf8b69b5849b49e))
|
330 |
+
* make the index page of the boilerplate cleaner ([f3a3f9b](https://github.com/ixartz/Next-js-Boilerplate/commit/f3a3f9b306bfaed85058d59cd15e62db158468ca))
|
331 |
+
|
332 |
+
# [3.40.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.39.0...v3.40.0) (2024-02-07)
|
333 |
+
|
334 |
+
|
335 |
+
### Features
|
336 |
+
|
337 |
+
* add pino.js as Logger ([1d35f43](https://github.com/ixartz/Next-js-Boilerplate/commit/1d35f43efd5e250498d2d30654be672e4e2d91c9))
|
338 |
+
|
339 |
+
# [3.39.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.38.0...v3.39.0) (2024-02-07)
|
340 |
+
|
341 |
+
|
342 |
+
### Features
|
343 |
+
|
344 |
+
* add preferType on VSCode ([a55bc6a](https://github.com/ixartz/Next-js-Boilerplate/commit/a55bc6a4b543c47ec491c5a84806f62c93dc1aa4))
|
345 |
+
|
346 |
+
# [3.38.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.37.0...v3.38.0) (2024-01-19)
|
347 |
+
|
348 |
+
|
349 |
+
### Features
|
350 |
+
|
351 |
+
* update to Next.js 14.1 ([5dab52d](https://github.com/ixartz/Next-js-Boilerplate/commit/5dab52d58648a12b5779f04d642ad4b2010931b0))
|
352 |
+
|
353 |
+
# [3.37.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.36.0...v3.37.0) (2024-01-13)
|
354 |
+
|
355 |
+
|
356 |
+
### Features
|
357 |
+
|
358 |
+
* add environment variables for one click deploy Netlify ([5becdbf](https://github.com/ixartz/Next-js-Boilerplate/commit/5becdbf59f43fdfe893c5b7b62cac1246787a07e))
|
359 |
+
|
360 |
+
# [3.36.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.35.0...v3.36.0) (2024-01-10)
|
361 |
+
|
362 |
+
|
363 |
+
### Features
|
364 |
+
|
365 |
+
* prod environement use the same method to migrate ([f6cfe7f](https://github.com/ixartz/Next-js-Boilerplate/commit/f6cfe7fa7583621c9161aa478f1d958d5c93c083))
|
366 |
+
|
367 |
+
|
368 |
+
### Reverts
|
369 |
+
|
370 |
+
* add back process.env.NODE_ENV check in README file for migrate ([853f3dc](https://github.com/ixartz/Next-js-Boilerplate/commit/853f3dc4cbade618902b382023fe6a6a8e947082))
|
371 |
+
* only run migration in development, if it run in production, it also run during the build ([c94a600](https://github.com/ixartz/Next-js-Boilerplate/commit/c94a6007b20f71fe10b10c76a05659364ee920ff))
|
372 |
+
|
373 |
+
# [3.35.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.34.0...v3.35.0) (2024-01-07)
|
374 |
+
|
375 |
+
|
376 |
+
### Features
|
377 |
+
|
378 |
+
* automatically run migrate in DB instead of running in NPM scripts ([b202686](https://github.com/ixartz/Next-js-Boilerplate/commit/b202686687a41eb38cf92a0451f03b5f0a854a2d))
|
379 |
+
* e2e tests run against next start with production code ([a57f724](https://github.com/ixartz/Next-js-Boilerplate/commit/a57f72402c459b75aec65472db7030557974643b))
|
380 |
+
* jest fail on console error and warn ([2dd92f2](https://github.com/ixartz/Next-js-Boilerplate/commit/2dd92f2db19df25210f0aa6eb8b9c44136a16ab7))
|
381 |
+
|
382 |
+
|
383 |
+
### Reverts
|
384 |
+
|
385 |
+
* change related to running playwright with next start ([1a2d0b6](https://github.com/ixartz/Next-js-Boilerplate/commit/1a2d0b6473e6e7b4965c7df353d39645a8688273))
|
386 |
+
* change related to running playwright with next start ([e9e0c17](https://github.com/ixartz/Next-js-Boilerplate/commit/e9e0c1790a8e76b51ee8a0b1012cc3492349bd1b))
|
387 |
+
|
388 |
+
# [3.34.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.33.0...v3.34.0) (2024-01-06)
|
389 |
+
|
390 |
+
|
391 |
+
### Features
|
392 |
+
|
393 |
+
* add type definition in Postcss config ([07906ff](https://github.com/ixartz/Next-js-Boilerplate/commit/07906ff20a7c8d2b0c24cc1f33c93b0bc541b9c3))
|
394 |
+
* change commitlint config from JS to TS ([6509805](https://github.com/ixartz/Next-js-Boilerplate/commit/650980539eb16c4ef0f5d1ed3e833cdb08faaf86))
|
395 |
+
* change jest config extension from js to TypeScript ([1cdea44](https://github.com/ixartz/Next-js-Boilerplate/commit/1cdea44c2a193e9df792dc997f6aa5304e043ff6))
|
396 |
+
* change nodeResolution to the new bundler from TypeScript 5.0 ([59282a2](https://github.com/ixartz/Next-js-Boilerplate/commit/59282a2f028a10b841f4af42248e4ecd2c41c080))
|
397 |
+
* convert Tailwind config file from JS to TS ([aff3b27](https://github.com/ixartz/Next-js-Boilerplate/commit/aff3b276c6b857570c3ec0b68de3cd5efaaeebbd))
|
398 |
+
|
399 |
+
# [3.33.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.32.1...v3.33.0) (2024-01-03)
|
400 |
+
|
401 |
+
|
402 |
+
### Features
|
403 |
+
|
404 |
+
* enable SWC compiler in Storybook ([5b4c61e](https://github.com/ixartz/Next-js-Boilerplate/commit/5b4c61ea11164b6e5853cefe363d2d433cda374d))
|
405 |
+
|
406 |
+
## [3.32.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.32.0...v3.32.1) (2023-12-27)
|
407 |
+
|
408 |
+
|
409 |
+
### Bug Fixes
|
410 |
+
|
411 |
+
* typo in en.json file for Portfolio word ([4d42b3d](https://github.com/ixartz/Next-js-Boilerplate/commit/4d42b3d11feeb1134961c0c688a6659b5e88364e))
|
412 |
+
|
413 |
+
# [3.32.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.31.0...v3.32.0) (2023-12-22)
|
414 |
+
|
415 |
+
|
416 |
+
### Features
|
417 |
+
|
418 |
+
* add code coverage reporting with Codecov ([08abd23](https://github.com/ixartz/Next-js-Boilerplate/commit/08abd23acbb5fb770046900901a367d60f18695e))
|
419 |
+
|
420 |
+
# [3.31.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.30.1...v3.31.0) (2023-12-20)
|
421 |
+
|
422 |
+
|
423 |
+
### Features
|
424 |
+
|
425 |
+
* add FIXME tag for Sentry configuration ([2eceef1](https://github.com/ixartz/Next-js-Boilerplate/commit/2eceef14257232c89f625acfe475c1aa7f220e46))
|
426 |
+
* add Sentry and launch spotlight.js in dev mode ([a1326ae](https://github.com/ixartz/Next-js-Boilerplate/commit/a1326aebb4ade33dc8a4429e749fb482ed906754))
|
427 |
+
* add spotlight ([34086c1](https://github.com/ixartz/Next-js-Boilerplate/commit/34086c1b8636bdc391c31ceed062a1e858d81539))
|
428 |
+
* enable Sentry Spotlight only in development mode ([62cc01a](https://github.com/ixartz/Next-js-Boilerplate/commit/62cc01ab2e1ae5594a4b91f931f313a904ff4b7d))
|
429 |
+
* ignore technical exception throw by React RSC in Sentry ([4bf9503](https://github.com/ixartz/Next-js-Boilerplate/commit/4bf95038600a28ea3e98e84dabec4df5fd9af609))
|
430 |
+
* in global error get locale in params and set in html lang attribute ([c3b4d25](https://github.com/ixartz/Next-js-Boilerplate/commit/c3b4d25d3be6a5ceed48f2d365bd14e44ff9b114))
|
431 |
+
|
432 |
+
## [3.30.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.30.0...v3.30.1) (2023-12-17)
|
433 |
+
|
434 |
+
|
435 |
+
### Bug Fixes
|
436 |
+
|
437 |
+
* api routes not found after apply intl middleware ([4650a5e](https://github.com/ixartz/Next-js-Boilerplate/commit/4650a5e293716dee7704c6082839aaf94b63e7ad)), closes [#209](https://github.com/ixartz/Next-js-Boilerplate/issues/209)
|
438 |
+
|
439 |
+
# [3.30.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.29.0...v3.30.0) (2023-12-12)
|
440 |
+
|
441 |
+
|
442 |
+
### Features
|
443 |
+
|
444 |
+
* add GitHub Actions to sync with Crowdin ([ccc86e9](https://github.com/ixartz/Next-js-Boilerplate/commit/ccc86e9e4df89dadd3214ae167972038f44108a6))
|
445 |
+
|
446 |
+
# [3.29.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.28.0...v3.29.0) (2023-12-08)
|
447 |
+
|
448 |
+
|
449 |
+
### Features
|
450 |
+
|
451 |
+
* add i18n support for client component and typesafety for i18n keys ([2d86247](https://github.com/ixartz/Next-js-Boilerplate/commit/2d862478414c4e6cf06e287acbef50369ef9a119))
|
452 |
+
* add i18n support for Dashboard url used in Clerk ([12b89bc](https://github.com/ixartz/Next-js-Boilerplate/commit/12b89bcfa1cae76872fc1504960a5ee417ef5eea))
|
453 |
+
* add i18n with Clerk components and remove custom style in global.css file ([5e1af6c](https://github.com/ixartz/Next-js-Boilerplate/commit/5e1af6c9a83cc6988c68fd761bf4945a2e0cdb9c))
|
454 |
+
* add i18n with next-intl ([1f43eb2](https://github.com/ixartz/Next-js-Boilerplate/commit/1f43eb247ad8591fef3aa8a34d112dd804eec4c3))
|
455 |
+
* add locale switcher UI to change lang ([13b40e3](https://github.com/ixartz/Next-js-Boilerplate/commit/13b40e32d265d341da1cf723c1af36f3ea53e7e1))
|
456 |
+
* add metatags in App Router for page migrated from Pages Router ([ce8c277](https://github.com/ixartz/Next-js-Boilerplate/commit/ce8c2770c41abcc3c866d7320de6ef4d8a541715))
|
457 |
+
* add support i18n for authMiddleware ([8651d36](https://github.com/ixartz/Next-js-Boilerplate/commit/8651d36279512b0f5e008341916110a8ee6f167a))
|
458 |
+
* add tests for page in App Router ([6a722a1](https://github.com/ixartz/Next-js-Boilerplate/commit/6a722a1fec7a236973f794edc6583a245ebb4747))
|
459 |
+
* convert all hard coded text and translate in french ([0c3b1b2](https://github.com/ixartz/Next-js-Boilerplate/commit/0c3b1b2f9a8ae5c0d34cb6f3a227a907aca00342))
|
460 |
+
* i18n for page metatag ([5e7676d](https://github.com/ixartz/Next-js-Boilerplate/commit/5e7676de0d58238de1d46e662c3c8e6e00bd2c5b))
|
461 |
+
* link in BaseTemplate replaced margin with gap ([28b6ff2](https://github.com/ixartz/Next-js-Boilerplate/commit/28b6ff24577b5d4338a7da068e06070c7f50f195))
|
462 |
+
* migreate the index page from Page Rotuer to App Router ([fd3e82c](https://github.com/ixartz/Next-js-Boilerplate/commit/fd3e82c2ff837951277a8300fd95f15294b9290a))
|
463 |
+
* move messages folder to locales ([305e385](https://github.com/ixartz/Next-js-Boilerplate/commit/305e38504939008ecfbbd3bfb6deaf052e57eae7))
|
464 |
+
* remove Page router and migrate about page to App Router ([3965cbf](https://github.com/ixartz/Next-js-Boilerplate/commit/3965cbf89a67a64272b895809a31791ccf383b57))
|
465 |
+
* translate text in dashboard layout ([8119f1d](https://github.com/ixartz/Next-js-Boilerplate/commit/8119f1db63853f83710a6cc1f3135b45bc209809))
|
466 |
+
|
467 |
+
|
468 |
+
### Reverts
|
469 |
+
|
470 |
+
* add back NEXT_PUBLIC_CLERK_SIGN_IN_URL in the previous location ([16ae2ef](https://github.com/ixartz/Next-js-Boilerplate/commit/16ae2ef3a7b2800a3ac4d847bb7afa70743ee805))
|
471 |
+
* add back style for a tag link ([c12a7bd](https://github.com/ixartz/Next-js-Boilerplate/commit/c12a7bd400c875a115eefe2a9921db9e36bf644d))
|
472 |
+
* use percy/cli 1.27.4 instead of 1.27.5, impossible to upload snapshort with 1.27.5 ([73f8a0b](https://github.com/ixartz/Next-js-Boilerplate/commit/73f8a0b0e9c69f83e5c5a2b51f52159fcc43c654))
|
473 |
+
|
474 |
+
# [3.28.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.27.0...v3.28.0) (2023-11-22)
|
475 |
+
|
476 |
+
|
477 |
+
### Features
|
478 |
+
|
479 |
+
* rename custom SignOutButton to LogOutButton to avoid confusion with Clerk SignOutButton ([183301b](https://github.com/ixartz/Next-js-Boilerplate/commit/183301b5e87bfa4479727c295e83b45b923454a0))
|
480 |
+
* use custom SignOutButton to apply custom CSS styles, unified with other nav links ([35094bf](https://github.com/ixartz/Next-js-Boilerplate/commit/35094bf038f0eae6e7e2d77238840c97cc7adabe))
|
481 |
+
|
482 |
+
# [3.27.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.26.0...v3.27.0) (2023-11-20)
|
483 |
+
|
484 |
+
|
485 |
+
### Features
|
486 |
+
|
487 |
+
* add PRODUCTION_URL environment variable and throw error when targetURL doesn't exist ([8134dee](https://github.com/ixartz/Next-js-Boilerplate/commit/8134dee84205e297020851bad4c81cf3906e7dfe))
|
488 |
+
* unified e2e tests for Checkly and playwright ([afa53f5](https://github.com/ixartz/Next-js-Boilerplate/commit/afa53f56b51f9a537131ceb046f90ea59c17dd71))
|
489 |
+
* use target URl instead of baseURL for checkly ([4fd61ed](https://github.com/ixartz/Next-js-Boilerplate/commit/4fd61edc77e1ef0d457cb829a89545f7dab47210))
|
490 |
+
|
491 |
+
# [3.26.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.25.0...v3.26.0) (2023-11-15)
|
492 |
+
|
493 |
+
|
494 |
+
### Features
|
495 |
+
|
496 |
+
* add a new GitHub Actions file for Checkly ([2109b1c](https://github.com/ixartz/Next-js-Boilerplate/commit/2109b1c75359a9ce89c2c0773fd65e78e1439403))
|
497 |
+
* add aria-label to fix jsx-a11y/control-has-associated-label error ([47e4ff4](https://github.com/ixartz/Next-js-Boilerplate/commit/47e4ff4f811b4e2071b9ba31f5c0ad1367b0caba))
|
498 |
+
* add email alert channel for checkly ([d1a4380](https://github.com/ixartz/Next-js-Boilerplate/commit/d1a43801d64fa261bdb252cf83dc289742f37294))
|
499 |
+
* add email channel in Checkly configuration to send emails when failing ([2019591](https://github.com/ixartz/Next-js-Boilerplate/commit/20195919d8a07f4e3cc0b7884e7d972de2935a94))
|
500 |
+
* create checkly config with a random working test ([32255b0](https://github.com/ixartz/Next-js-Boilerplate/commit/32255b0770ec5be84e9fd3321154329c556aedee))
|
501 |
+
* remove eslint rule customization in VSCode and use min(1) instead of nonempty (deprecated) ([9982a2d](https://github.com/ixartz/Next-js-Boilerplate/commit/9982a2d94fe7854eefaa754e9f41cf4735a81c86))
|
502 |
+
* update package-lock.json to fix CI ([1fff7ef](https://github.com/ixartz/Next-js-Boilerplate/commit/1fff7efe7295a9ee750b9f05af1a670db7bda733))
|
503 |
+
|
504 |
+
# [3.25.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.24.0...v3.25.0) (2023-10-30)
|
505 |
+
|
506 |
+
|
507 |
+
### Features
|
508 |
+
|
509 |
+
* release a new version for Next.js 14 and update README file ([4be2485](https://github.com/ixartz/Next-js-Boilerplate/commit/4be24850b75b9ca896e9e5546b8357745b128398))
|
510 |
+
|
511 |
+
# [3.24.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.23.0...v3.24.0) (2023-10-24)
|
512 |
+
|
513 |
+
|
514 |
+
### Features
|
515 |
+
|
516 |
+
* make guestbook endpoint avaiable to signed out users ([10b4d81](https://github.com/ixartz/Next-js-Boilerplate/commit/10b4d814d477e3475569537b1ef01a86b68c9a43))
|
517 |
+
|
518 |
+
# [3.23.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.22.0...v3.23.0) (2023-10-12)
|
519 |
+
|
520 |
+
|
521 |
+
### Features
|
522 |
+
|
523 |
+
* add playwright extension in VSCode ([956d1a8](https://github.com/ixartz/Next-js-Boilerplate/commit/956d1a8ec70c6a1214c72a115f0378507aa1b436))
|
524 |
+
* add playwright plugin in ESLint ([b2486f1](https://github.com/ixartz/Next-js-Boilerplate/commit/b2486f1b1090c458115b873ddc5bffa8ecaf8412))
|
525 |
+
* add Playwright: config, first test and dependency ([f054ea2](https://github.com/ixartz/Next-js-Boilerplate/commit/f054ea264bab3376ab7f86b0a0fdc1b6a4e98350))
|
526 |
+
* remove all Cypress related files and configurations ([9fe8271](https://github.com/ixartz/Next-js-Boilerplate/commit/9fe8271e667b819910702803f5489e99766fe9ff))
|
527 |
+
|
528 |
+
|
529 |
+
### Reverts
|
530 |
+
|
531 |
+
* the failing test in Navigation spec ([28996f5](https://github.com/ixartz/Next-js-Boilerplate/commit/28996f59d2f02562761609348000d55776365f7e))
|
532 |
+
|
533 |
+
# [3.22.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.21.0...v3.22.0) (2023-10-02)
|
534 |
+
|
535 |
+
|
536 |
+
### Features
|
537 |
+
|
538 |
+
* remove basePath in Next.js configuration ([7f9a0e6](https://github.com/ixartz/Next-js-Boilerplate/commit/7f9a0e6ed42aec7d9ec500531b7f519dc11a5ec9))
|
539 |
+
* remove no-img-element and use Next.js built-in <Image component ([383e3a3](https://github.com/ixartz/Next-js-Boilerplate/commit/383e3a38b98d92d59184275864888e9693a1cff7))
|
540 |
+
|
541 |
+
# [3.21.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.20.0...v3.21.0) (2023-09-25)
|
542 |
+
|
543 |
+
|
544 |
+
### Features
|
545 |
+
|
546 |
+
* update next.js to version 13.5 ([aa43f14](https://github.com/ixartz/Next-js-Boilerplate/commit/aa43f14bea16fcb4fd786d9fe74ae37bf29b5b5f))
|
547 |
+
* update storybook to the latest version and install playwright ([2079a34](https://github.com/ixartz/Next-js-Boilerplate/commit/2079a347bbbd08d2ffbc4ea96995eaaf66602373))
|
548 |
+
|
549 |
+
# [3.20.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.19.0...v3.20.0) (2023-09-01)
|
550 |
+
|
551 |
+
|
552 |
+
### Features
|
553 |
+
|
554 |
+
* make updatedAt working when the user update a message and rename the attribute to updatedAt ([4032bc0](https://github.com/ixartz/Next-js-Boilerplate/commit/4032bc0123660c20a72aa52ed611ea1f150e54af))
|
555 |
+
|
556 |
+
# [3.19.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.18.0...v3.19.0) (2023-08-30)
|
557 |
+
|
558 |
+
|
559 |
+
### Features
|
560 |
+
|
561 |
+
* make it easier to try edge runtime in the app router ([3f5fd58](https://github.com/ixartz/Next-js-Boilerplate/commit/3f5fd58d0980fdd35860d31d29b8f18e9c93b53f))
|
562 |
+
|
563 |
+
# [3.18.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.17.0...v3.18.0) (2023-08-27)
|
564 |
+
|
565 |
+
|
566 |
+
### Features
|
567 |
+
|
568 |
+
* remove MIGRATE_DB which not needed anymore with process.env.NODE_ENV ([3fe81ae](https://github.com/ixartz/Next-js-Boilerplate/commit/3fe81ae98440b33ce18cee80265fdaa54e242184))
|
569 |
+
|
570 |
+
# [3.17.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.16.0...v3.17.0) (2023-08-27)
|
571 |
+
|
572 |
+
|
573 |
+
### Features
|
574 |
+
|
575 |
+
* add schema in drizzle instance and disable migrate in production ([5e26798](https://github.com/ixartz/Next-js-Boilerplate/commit/5e2679877a3da64a4cabfc22fdaacebd6abe6789))
|
576 |
+
* add script to migrate before building next.js ([220d05e](https://github.com/ixartz/Next-js-Boilerplate/commit/220d05e5d028852ccc533ca60b187bc3d47c5d73))
|
577 |
+
* do not run db migration when building on GitHub actions ([964cfa1](https://github.com/ixartz/Next-js-Boilerplate/commit/964cfa1a02fb41b387c851f0b2293c673859d60a))
|
578 |
+
* reload guestbook page when deployed on production ([c2e91b2](https://github.com/ixartz/Next-js-Boilerplate/commit/c2e91b2df944b0659d1768d2a7cc54a494d7d5c1))
|
579 |
+
* replace dotenv/config by dotenv-cli in db:studio NPM scripts ([f7f8743](https://github.com/ixartz/Next-js-Boilerplate/commit/f7f87435a984fa9d0407a7602d1ef38563c5e8d0))
|
580 |
+
|
581 |
+
# [3.16.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.15.0...v3.16.0) (2023-08-24)
|
582 |
+
|
583 |
+
|
584 |
+
### Bug Fixes
|
585 |
+
|
586 |
+
* build issues with prerendering ([ff117b9](https://github.com/ixartz/Next-js-Boilerplate/commit/ff117b9750e3609cebbf53a5dea01f0fbf94f865))
|
587 |
+
|
588 |
+
|
589 |
+
### Features
|
590 |
+
|
591 |
+
* add .env file for production ([58ed68c](https://github.com/ixartz/Next-js-Boilerplate/commit/58ed68cc2eefb1274e6e268c40a3ed8cd7d936be))
|
592 |
+
* add authToken support for production Turso ([26b8276](https://github.com/ixartz/Next-js-Boilerplate/commit/26b827618199f1dd73453c7ec021c13a4aaf5f7b))
|
593 |
+
* add await for migrate function ([96793f0](https://github.com/ixartz/Next-js-Boilerplate/commit/96793f0adedb10f802dfb46ff96b85f14c78ebf3))
|
594 |
+
* add database powered by Turso in guestbook page ([64073a5](https://github.com/ixartz/Next-js-Boilerplate/commit/64073a5babb38327a23fd3ae2b354152306e7977))
|
595 |
+
* add db file in gitignore ([cd45e09](https://github.com/ixartz/Next-js-Boilerplate/commit/cd45e0906cc79e87302ee6b88674089c5de059a3))
|
596 |
+
* add drizzle config and database schema ([df30388](https://github.com/ixartz/Next-js-Boilerplate/commit/df30388002ead9121ffb764e1bd11a71550cbe06))
|
597 |
+
* add style for guestbook ([339154c](https://github.com/ixartz/Next-js-Boilerplate/commit/339154ccfdaf7e53aeefd12fe0e347c645be5163))
|
598 |
+
* add typesafe environment variables ([5a2cd78](https://github.com/ixartz/Next-js-Boilerplate/commit/5a2cd78aca2fc60e6c0d4861ff656e7ba2ac86c4))
|
599 |
+
* create guestbook should not accept empty username and email ([37e4408](https://github.com/ixartz/Next-js-Boilerplate/commit/37e4408f968b36332a0a8ae9a90c687eee7fb4a0))
|
600 |
+
* implement AddGuestbookForm to create new guestbook message ([d7b37e6](https://github.com/ixartz/Next-js-Boilerplate/commit/d7b37e63f65d528e599b14d64cbf3ac5b2d3feba))
|
601 |
+
* implement delete guestbook entry ([b7f823a](https://github.com/ixartz/Next-js-Boilerplate/commit/b7f823a83435856ac32aea90da8317926e5b2b8b))
|
602 |
+
* improve UI for AddGuestbookForm ([153abfc](https://github.com/ixartz/Next-js-Boilerplate/commit/153abfc0e2f10a5aa59e24af8f0ef76667041578))
|
603 |
+
* insert in guestbook and retrieve all guestbooks ([23ee408](https://github.com/ixartz/Next-js-Boilerplate/commit/23ee4086a8c2166bdd6fe82b1cb50cc286793bb3))
|
604 |
+
* make guestbook editable ([8ec1406](https://github.com/ixartz/Next-js-Boilerplate/commit/8ec14066a966c76b02bf5552ec2f4f348048a45c))
|
605 |
+
* remove notnull in schema.ts ([10f4943](https://github.com/ixartz/Next-js-Boilerplate/commit/10f49434999ba0a884a72e640c67dc955bf7eedd))
|
606 |
+
* rename from email to username ([52ab0e4](https://github.com/ixartz/Next-js-Boilerplate/commit/52ab0e4f86b20ace52cbb6ce421f85357c0dfa6e))
|
607 |
+
* replace new-router page by guestbook ([efc84e6](https://github.com/ixartz/Next-js-Boilerplate/commit/efc84e607d23981dba07b931ff078776aa9693b5))
|
608 |
+
* replace with a working URL for the database to avoid timeout ([fecd8a5](https://github.com/ixartz/Next-js-Boilerplate/commit/fecd8a5d66934af774fde12759f8079cabfb382b))
|
609 |
+
* update dotenv path to .env, the file was renamed ([bd9b2c9](https://github.com/ixartz/Next-js-Boilerplate/commit/bd9b2c9efd12a0b54125ac352c43aab9d31c7c99))
|
610 |
+
* use local SQLite file ([fe52801](https://github.com/ixartz/Next-js-Boilerplate/commit/fe528010cf2d867fcbbc53156ae7fa6c862a88f4))
|
611 |
+
* validate t3 env on build ([6d448ed](https://github.com/ixartz/Next-js-Boilerplate/commit/6d448ed0fdea51952c8bfeaf4ce948cf9365675c))
|
612 |
+
|
613 |
+
# [3.15.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.14.1...v3.15.0) (2023-08-10)
|
614 |
+
|
615 |
+
|
616 |
+
### Features
|
617 |
+
|
618 |
+
* add next.js middleware with Clerk ([2f4a1d3](https://github.com/ixartz/Next-js-Boilerplate/commit/2f4a1d3e394eb835b011a13289f156a91993d782))
|
619 |
+
* add sign in and sign up link in index page ([4489085](https://github.com/ixartz/Next-js-Boilerplate/commit/4489085e8deb0ae1836a3741657f8331af6294ca))
|
620 |
+
* add sign in and sign up page ([f021f71](https://github.com/ixartz/Next-js-Boilerplate/commit/f021f71f755e3af3cb789d0330ad2a0237ec600d))
|
621 |
+
* add sign out button in dashboard ([c663d1c](https://github.com/ixartz/Next-js-Boilerplate/commit/c663d1c4799869faf2a2c549669521409f192830))
|
622 |
+
* add user profile to manage account ([470731b](https://github.com/ixartz/Next-js-Boilerplate/commit/470731ba960dfdd0aa57f66affde28b0226d5d42))
|
623 |
+
* add user profile to manage account ([581efbe](https://github.com/ixartz/Next-js-Boilerplate/commit/581efbef51cf700f9bbe94f268ff99639f5e49da))
|
624 |
+
* implement hello component by display user email address ([7047985](https://github.com/ixartz/Next-js-Boilerplate/commit/7047985ffbce9a986e7308040928783395cf7b68))
|
625 |
+
* implement sign out button ([8588834](https://github.com/ixartz/Next-js-Boilerplate/commit/8588834b5f1a53c51835d7aba5a4c9f1230c1bf7))
|
626 |
+
* implement sign out button and redirect to sign in page when logging out ([45ed137](https://github.com/ixartz/Next-js-Boilerplate/commit/45ed137d5c4e292ac8329f0661cb38fc29812927))
|
627 |
+
* redirect to dashboard when the user is signed in for sign up and sign in page ([629a033](https://github.com/ixartz/Next-js-Boilerplate/commit/629a03363af310e5411fea4cb554b53e72701e7d))
|
628 |
+
|
629 |
+
## [3.14.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.14.0...v3.14.1) (2023-08-07)
|
630 |
+
|
631 |
+
|
632 |
+
### Bug Fixes
|
633 |
+
|
634 |
+
* resolve sourcemap error with Cypress and TypeScript 5 ([54a5100](https://github.com/ixartz/Next-js-Boilerplate/commit/54a51004d6e22860eb1c6aad4ff689fac46bd0b4))
|
635 |
+
|
636 |
+
# [3.14.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.13.0...v3.14.0) (2023-08-03)
|
637 |
+
|
638 |
+
|
639 |
+
### Features
|
640 |
+
|
641 |
+
* use Next.js custom TypeScript plugin ([915e193](https://github.com/ixartz/Next-js-Boilerplate/commit/915e193f8037d36e9779fe7464a4d6c1685b3a94))
|
642 |
+
|
643 |
+
# [3.13.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.12.0...v3.13.0) (2023-08-02)
|
644 |
+
|
645 |
+
|
646 |
+
### Features
|
647 |
+
|
648 |
+
* add app routed pages ([9cc79a0](https://github.com/ixartz/Next-js-Boilerplate/commit/9cc79a00647b0a4ce64f66da4a430ec2c4972367)), closes [#64](https://github.com/ixartz/Next-js-Boilerplate/issues/64)
|
649 |
+
* add sitemap support app router ([b82e566](https://github.com/ixartz/Next-js-Boilerplate/commit/b82e566fb43d63329ef4507870494e554dea0e6a))
|
650 |
+
* app router doesn't support next export, use output: export ([76aa9cd](https://github.com/ixartz/Next-js-Boilerplate/commit/76aa9cd0597ad06fd0f0160ad6119a25b87d3336))
|
651 |
+
* generate statically portfolio pages ([1f1bf31](https://github.com/ixartz/Next-js-Boilerplate/commit/1f1bf3143215ab19d19cd4f13e4048b0ee84073c))
|
652 |
+
* update test for new router page ([b695666](https://github.com/ixartz/Next-js-Boilerplate/commit/b695666fd41c9ddf1886e9b5e3c7cc43b616820c))
|
653 |
+
|
654 |
+
# [3.12.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.11.0...v3.12.0) (2023-07-13)
|
655 |
+
|
656 |
+
|
657 |
+
### Features
|
658 |
+
|
659 |
+
* format code to respect prettier ([48b6a49](https://github.com/ixartz/Next-js-Boilerplate/commit/48b6a49fd204083deb94b01aab70b52a42b9593f))
|
660 |
+
* resolve conflict between airbnb-hook and next/core-web-vitals about react hooks ([5e0be4f](https://github.com/ixartz/Next-js-Boilerplate/commit/5e0be4fd8c2f9acd895f0b9ce373af7d782d44df))
|
661 |
+
* update to the latest dependencies version ([d93fd83](https://github.com/ixartz/Next-js-Boilerplate/commit/d93fd83b6ab93360ddd8489afc8cfb05603e504c))
|
662 |
+
|
663 |
+
|
664 |
+
### Reverts
|
665 |
+
|
666 |
+
* use older TypeScript to avoid e2e compilation with sourcemap ([6377d2f](https://github.com/ixartz/Next-js-Boilerplate/commit/6377d2f2efc71384fba236427086b4e75f189328))
|
667 |
+
|
668 |
+
# [3.11.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.10.1...v3.11.0) (2023-06-07)
|
669 |
+
|
670 |
+
|
671 |
+
### Features
|
672 |
+
|
673 |
+
* update dependencies to the latest version ([b7609de](https://github.com/ixartz/Next-js-Boilerplate/commit/b7609dea1c8bd49f6ac05439740ea78894cd4a79))
|
674 |
+
|
675 |
+
## [3.10.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.10.0...v3.10.1) (2023-05-29)
|
676 |
+
|
677 |
+
|
678 |
+
### Bug Fixes
|
679 |
+
|
680 |
+
* added types ([b35ddc9](https://github.com/ixartz/Next-js-Boilerplate/commit/b35ddc91ecad81986432dce1ba84c302e6394a5b))
|
681 |
+
|
682 |
+
# [3.10.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.9.0...v3.10.0) (2023-04-26)
|
683 |
+
|
684 |
+
|
685 |
+
### Features
|
686 |
+
|
687 |
+
* add vscode yoavbls.pretty-ts-errors extension ([3588ce1](https://github.com/ixartz/Next-js-Boilerplate/commit/3588ce1dd366ebaa69f97551be58528d1ae38457))
|
688 |
+
* remove stories in the coverage from Jest ([d502869](https://github.com/ixartz/Next-js-Boilerplate/commit/d502869a08a0b1d9025a4ce582651c5353f29d59))
|
689 |
+
* use default airbnb instead of the base version ([5c05116](https://github.com/ixartz/Next-js-Boilerplate/commit/5c05116fb777aee09c1af7df6694e54403eaaccb))
|
690 |
+
|
691 |
+
# [3.9.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.8.2...v3.9.0) (2023-04-05)
|
692 |
+
|
693 |
+
|
694 |
+
### Features
|
695 |
+
|
696 |
+
* add storybook into project ([51f3748](https://github.com/ixartz/Next-js-Boilerplate/commit/51f3748c0cb6d9cd04cdb0d3b9d95a0f60851866))
|
697 |
+
* add tailwind css support in Storybook ([5e0d287](https://github.com/ixartz/Next-js-Boilerplate/commit/5e0d287cef8a898df8f1a98632a8703657282100))
|
698 |
+
* remove warning for no extreneous deps in stories ([b243d44](https://github.com/ixartz/Next-js-Boilerplate/commit/b243d441e4b75566e16f5fa64d26900267eb89f5))
|
699 |
+
|
700 |
+
|
701 |
+
### Reverts
|
702 |
+
|
703 |
+
* remove storybook addon-styling which is not needed ([e863fed](https://github.com/ixartz/Next-js-Boilerplate/commit/e863fedcbc5a1aaf808c295d80f8de95b6abd1f7))
|
704 |
+
|
705 |
+
## [3.8.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.8.1...v3.8.2) (2023-03-28)
|
706 |
+
|
707 |
+
|
708 |
+
### Bug Fixes
|
709 |
+
|
710 |
+
* error generated by eslint-plugin-cypress ([7562c6b](https://github.com/ixartz/Next-js-Boilerplate/commit/7562c6bddb31e6941aee7e4e2bbcdabf5be3bddf))
|
711 |
+
|
712 |
+
## [3.8.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.8.0...v3.8.1) (2023-03-16)
|
713 |
+
|
714 |
+
|
715 |
+
### Bug Fixes
|
716 |
+
|
717 |
+
* typo in Readme ([8f7c1b7](https://github.com/ixartz/Next-js-Boilerplate/commit/8f7c1b79a46406b04b90ed8a5fe5029b3c24ff8c))
|
718 |
+
|
719 |
+
# [3.8.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.7.0...v3.8.0) (2023-03-02)
|
720 |
+
|
721 |
+
|
722 |
+
### Features
|
723 |
+
|
724 |
+
* fix heading levels increase by one ([e712e60](https://github.com/ixartz/Next-js-Boilerplate/commit/e712e60402f04033673d93e464d7b3c46fff7dbe))
|
725 |
+
|
726 |
+
# [3.7.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.6.0...v3.7.0) (2023-02-05)
|
727 |
+
|
728 |
+
|
729 |
+
### Features
|
730 |
+
|
731 |
+
* improve accessibility ([aa0f0b1](https://github.com/ixartz/Next-js-Boilerplate/commit/aa0f0b12085e31f13574fc9f4349157102d4467b))
|
732 |
+
|
733 |
+
|
734 |
+
### Reverts
|
735 |
+
|
736 |
+
* add support for all Node.js 14+, too restrictive with only Node.js 18+ ([4e27540](https://github.com/ixartz/Next-js-Boilerplate/commit/4e27540f638d4767fb60b612519669ad6bf69367))
|
737 |
+
* downgrade semantic-release version to 19 ([26d5a6e](https://github.com/ixartz/Next-js-Boilerplate/commit/26d5a6ebe2fc4fe59fef40779e132ccf1f31c09f))
|
738 |
+
|
739 |
+
# [3.6.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.5.4...v3.6.0) (2022-12-03)
|
740 |
+
|
741 |
+
|
742 |
+
### Bug Fixes
|
743 |
+
|
744 |
+
* add npx before percy command line ([4824e98](https://github.com/ixartz/Next-js-Boilerplate/commit/4824e98a4d621684494fe2c7e8c3351551e52845))
|
745 |
+
* retrive PERCY_TOKEN and set token for percy cli ([afe00f2](https://github.com/ixartz/Next-js-Boilerplate/commit/afe00f2e47b5dbc5fb701dd2e46756f4b7e498fd))
|
746 |
+
* wait until the link rendered instead a wrong heading tag ([e38655b](https://github.com/ixartz/Next-js-Boilerplate/commit/e38655b853b39fdcb9bccd3a84e99dd5caa1681d))
|
747 |
+
|
748 |
+
|
749 |
+
### Features
|
750 |
+
|
751 |
+
* add visual testing with Percy ([b0a39f5](https://github.com/ixartz/Next-js-Boilerplate/commit/b0a39f58e1bd0934158b0bab8ab7e4c9215e88f0))
|
752 |
+
|
753 |
+
## [3.5.4](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.5.3...v3.5.4) (2022-12-03)
|
754 |
+
|
755 |
+
|
756 |
+
### Bug Fixes
|
757 |
+
|
758 |
+
* change matching regex for Cypress files ([861d545](https://github.com/ixartz/Next-js-Boilerplate/commit/861d54596b61b7706cfbb681df334d73b34a378e))
|
759 |
+
|
760 |
+
## [3.5.3](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.5.2...v3.5.3) (2022-12-02)
|
761 |
+
|
762 |
+
|
763 |
+
### Bug Fixes
|
764 |
+
|
765 |
+
* resolve merge conflict ([276f57a](https://github.com/ixartz/Next-js-Boilerplate/commit/276f57aeb0d4a346f8e19ad81ce4703458d9f41c))
|
766 |
+
|
767 |
+
## [3.5.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.5.1...v3.5.2) (2022-12-02)
|
768 |
+
|
769 |
+
|
770 |
+
### Bug Fixes
|
771 |
+
|
772 |
+
* use npx npm-check-updates ([e530193](https://github.com/ixartz/Next-js-Boilerplate/commit/e5301939a5ff98c598899ff49bee1ad351759292))
|
773 |
+
|
774 |
+
## [3.5.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.5.0...v3.5.1) (2022-12-02)
|
775 |
+
|
776 |
+
|
777 |
+
### Bug Fixes
|
778 |
+
|
779 |
+
* add steps in update-deps.yml file, syntax error ([b5de445](https://github.com/ixartz/Next-js-Boilerplate/commit/b5de445f1f927a5a7c2b0c85746b8fd07629cb55))
|
780 |
+
|
781 |
+
# [3.5.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.4.0...v3.5.0) (2022-12-02)
|
782 |
+
|
783 |
+
|
784 |
+
### Features
|
785 |
+
|
786 |
+
* add auto-update GitHub Actions ([364168f](https://github.com/ixartz/Next-js-Boilerplate/commit/364168f3407c7cdd21da7cd1de6d9d930f89d99a))
|
787 |
+
|
788 |
+
# [3.4.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.3.0...v3.4.0) (2022-12-02)
|
789 |
+
|
790 |
+
|
791 |
+
### Features
|
792 |
+
|
793 |
+
* automatically format the whole codebase with npm run format ([9299209](https://github.com/ixartz/Next-js-Boilerplate/commit/92992096ede4d2b3e77c3e0c96b75e5e6b84067d))
|
794 |
+
* update footer message and comment ([4f74176](https://github.com/ixartz/Next-js-Boilerplate/commit/4f74176b05528666fd8b92a8becdc7e3c2f0db4a))
|
795 |
+
|
796 |
+
# [3.3.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.2.4...v3.3.0) (2022-11-22)
|
797 |
+
|
798 |
+
|
799 |
+
### Features
|
800 |
+
|
801 |
+
* change 'powered by' text to 'built' with ([fe0a29f](https://github.com/ixartz/Next-js-Boilerplate/commit/fe0a29f8fbab14c7e8c8e98a75ce488ac157e509))
|
802 |
+
|
803 |
+
## [3.2.4](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.2.3...v3.2.4) (2022-11-20)
|
804 |
+
|
805 |
+
|
806 |
+
### Bug Fixes
|
807 |
+
|
808 |
+
* update README file for next-sitemap ([9496217](https://github.com/ixartz/Next-js-Boilerplate/commit/94962171a35a07e84319374500f28a76f264a266))
|
809 |
+
|
810 |
+
## [3.2.3](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.2.2...v3.2.3) (2022-11-20)
|
811 |
+
|
812 |
+
|
813 |
+
### Bug Fixes
|
814 |
+
|
815 |
+
* add sitemap file in gitignore, it shouldn't commit to git ([344b731](https://github.com/ixartz/Next-js-Boilerplate/commit/344b7312df2f7e12e642a6346ef05ad9a7ca766c))
|
816 |
+
|
817 |
+
## [3.2.2](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.2.1...v3.2.2) (2022-11-20)
|
818 |
+
|
819 |
+
|
820 |
+
### Bug Fixes
|
821 |
+
|
822 |
+
* rename from mjs to js next-sitemap file ([7d450ff](https://github.com/ixartz/Next-js-Boilerplate/commit/7d450ffce77f0be4c533cb1aab757f7fb1f13596))
|
823 |
+
|
824 |
+
## [3.2.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.2.0...v3.2.1) (2022-11-20)
|
825 |
+
|
826 |
+
|
827 |
+
### Bug Fixes
|
828 |
+
|
829 |
+
* code styling in blog component pages ([f4a55c4](https://github.com/ixartz/Next-js-Boilerplate/commit/f4a55c4234fc03ed719859c12f13bffabd120c6d))
|
830 |
+
* move getStaticPaths at the top of blog page ([83892ea](https://github.com/ixartz/Next-js-Boilerplate/commit/83892ea865459f59da824c9358fbf4ccea6475e6))
|
831 |
+
* remove generated files by next-sitemap ([c5d93bf](https://github.com/ixartz/Next-js-Boilerplate/commit/c5d93bf9fe67a6737b536edf4d50d56cd4c8af2c))
|
832 |
+
|
833 |
+
# [3.2.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.1.0...v3.2.0) (2022-11-19)
|
834 |
+
|
835 |
+
|
836 |
+
### Features
|
837 |
+
|
838 |
+
* run github release only on completed CI workflow ([dd4de76](https://github.com/ixartz/Next-js-Boilerplate/commit/dd4de76b6ea013190a6ea18d69eb3764e1b915f9))
|
839 |
+
|
840 |
+
# [3.1.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v3.0.0...v3.1.0) (2022-11-19)
|
841 |
+
|
842 |
+
|
843 |
+
### Bug Fixes
|
844 |
+
|
845 |
+
* just rebuild sitemap ([831bae9](https://github.com/ixartz/Next-js-Boilerplate/commit/831bae93831eb5c4f259c4a0fa9ec3012ede8927))
|
846 |
+
|
847 |
+
|
848 |
+
### Features
|
849 |
+
|
850 |
+
* add blog page ([89c4ec7](https://github.com/ixartz/Next-js-Boilerplate/commit/89c4ec79db48f4ae09af3e8ddb3ce5a980ed8ee6))
|
851 |
+
* add sitemap.xml and robots.txt from build ([545d133](https://github.com/ixartz/Next-js-Boilerplate/commit/545d133decee4f7d42c228049ef3bde2b9a94b0a))
|
852 |
+
* disable Husky for release ([f20c595](https://github.com/ixartz/Next-js-Boilerplate/commit/f20c5951e018c99421e833eef6ce14bd9632838f))
|
853 |
+
* rename from master to main ([10920ec](https://github.com/ixartz/Next-js-Boilerplate/commit/10920ece4892ca73639388116af59fdd3e077d5f))
|
854 |
+
* update TypeScript to 4.9.x ([471dc70](https://github.com/ixartz/Next-js-Boilerplate/commit/471dc70306c69ecb524af40aa76403daa83597e2))
|
855 |
+
|
856 |
+
# Changelog
|
857 |
+
|
858 |
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
859 |
+
|
860 |
+
## [3.0.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v2.1.1...v3.0.0) (2022-10-26)
|
861 |
+
|
862 |
+
|
863 |
+
### ⚠ BREAKING CHANGES
|
864 |
+
|
865 |
+
* update to Next.js 13 and Tailwind CSS 3.2
|
866 |
+
|
867 |
+
### Features
|
868 |
+
|
869 |
+
* add commit script in package.json ([8f4719e](https://github.com/ixartz/Next-js-Boilerplate/commit/8f4719ec550ab0dbffa93ca1d278aa9e370a773a))
|
870 |
+
|
871 |
+
|
872 |
+
### Bug Fixes
|
873 |
+
|
874 |
+
* Eslint comment update ([8baa5d1](https://github.com/ixartz/Next-js-Boilerplate/commit/8baa5d160734a3cadb419534509cc6edaac57456))
|
875 |
+
|
876 |
+
|
877 |
+
* update to Next.js 13 and Tailwind CSS 3.2 ([fc9f2c1](https://github.com/ixartz/Next-js-Boilerplate/commit/fc9f2c1cf914c15b36cdf881306d20b405a259e8))
|
878 |
+
|
879 |
+
### [2.1.1](https://github.com/ixartz/Next-js-Boilerplate/compare/v2.1.0...v2.1.1) (2022-09-08)
|
880 |
+
|
881 |
+
## [2.1.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v2.0.0...v2.1.0) (2022-07-08)
|
882 |
+
|
883 |
+
|
884 |
+
### Features
|
885 |
+
|
886 |
+
* add cypress and cypress eslint plugin ([5657ee6](https://github.com/ixartz/Next-js-Boilerplate/commit/5657ee6dab03b11020bb2ce80083669785edd6ce))
|
887 |
+
|
888 |
+
## [2.0.0](https://github.com/ixartz/Next-js-Boilerplate/compare/v1.1.0...v2.0.0) (2022-07-03)
|
889 |
+
|
890 |
+
|
891 |
+
### ⚠ BREAKING CHANGES
|
892 |
+
|
893 |
+
* add Jest and React testing library
|
894 |
+
* to React 18
|
895 |
+
|
896 |
+
### Features
|
897 |
+
|
898 |
+
* add coverage for vscode-jest and configure jest autoRun ([ad8a030](https://github.com/ixartz/Next-js-Boilerplate/commit/ad8a03019010577bfb8e8ed850e8d45ca274dbe9))
|
899 |
+
* add Jest and React testing library ([e182b87](https://github.com/ixartz/Next-js-Boilerplate/commit/e182b87db5943abbe706568e77285e1eb6bddf5e))
|
900 |
+
* add TypeScript support for Tailwind CSS configuration ([41f1918](https://github.com/ixartz/Next-js-Boilerplate/commit/41f19189655abe3941485363e057812a5fcd6c02))
|
901 |
+
* add vscode jest extension ([49ab935](https://github.com/ixartz/Next-js-Boilerplate/commit/49ab935a03f5a9d1074a155331107737fd7dad13))
|
902 |
+
|
903 |
+
|
904 |
+
* to React 18 ([c78f215](https://github.com/ixartz/Next-js-Boilerplate/commit/c78f2152a978a39b2c6d381427df8e8ad2a30099))
|
905 |
+
|
906 |
+
## 1.1.0 (2022-04-25)
|
907 |
+
|
908 |
+
|
909 |
+
### Features
|
910 |
+
|
911 |
+
* add commitlint with config-conventional ([97a9ac7](https://github.com/ixartz/Next-js-Boilerplate/commit/97a9ac7dbbca3f8d4fad22a9e4a481c029cd2cb5))
|
912 |
+
|
913 |
+
|
914 |
+
### Bug Fixes
|
915 |
+
|
916 |
+
* add missing files for commitzen ([018ba8b](https://github.com/ixartz/Next-js-Boilerplate/commit/018ba8bde81b0f6cc60230fe4668b149ac3b2e6a))
|
917 |
+
* update package-lock.json ([fba016d](https://github.com/ixartz/Next-js-Boilerplate/commit/fba016dec202d5748e30804b1bf50e30c00ef120))
|
LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2024 Remi W.
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
README.md
ADDED
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Boilerplate and Starter for Next.js 15+, Tailwind CSS 3.4, and TypeScript.
|
2 |
+
|
3 |
+
<p align="center">
|
4 |
+
<a href="https://demo.nextjs-boilerplate.com"><img height="300" src="public/assets/images/nextjs-starter-banner.png?raw=true" alt="Next js starter banner"></a>
|
5 |
+
</p>
|
6 |
+
|
7 |
+
🚀 Boilerplate and Starter for Next.js with App Router, Tailwind CSS, and TypeScript ⚡️ Prioritizing developer experience first: Next.js, TypeScript, ESLint, Prettier, Husky, Lint-Staged, Vitest (replacing Jest), Testing Library, Playwright, Commitlint, VSCode, Tailwind CSS, Authentication with [Clerk](https://clerk.com?utm_source=github&utm_medium=sponsorship&utm_campaign=nextjs-boilerplate), Database with DrizzleORM (PostgreSQL, SQLite, and MySQL), Error Monitoring with [Sentry](https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo), Logging with Pino.js and Log Management, Monitoring as Code, Storybook, Multi-language (i18n), Secure with [Arcjet](https://launch.arcjet.com/Q6eLbRE) (Bot detection, Rate limiting, Attack protection, etc.) and more.
|
8 |
+
|
9 |
+
Clone this project and use it to create your own Next.js project. You can check out the live demo at [Next.js Boilerplate](https://demo.nextjs-boilerplate.com), which includes a working authentication system.
|
10 |
+
|
11 |
+
## Sponsors
|
12 |
+
|
13 |
+
<table width="100%">
|
14 |
+
<tr height="187px">
|
15 |
+
<td align="center" width="33%">
|
16 |
+
<a href="https://clerk.com?utm_source=github&utm_medium=sponsorship&utm_campaign=nextjs-boilerplate">
|
17 |
+
<picture>
|
18 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/6fb61971-3bf1-4580-98a0-10bd3f1040a2">
|
19 |
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/f80a8bb5-66da-4772-ad36-5fabc5b02c60">
|
20 |
+
<img alt="Clerk – Authentication & User Management for Next.js" src="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/f80a8bb5-66da-4772-ad36-5fabc5b02c60">
|
21 |
+
</picture>
|
22 |
+
</a>
|
23 |
+
</td>
|
24 |
+
<td align="center" width="33%">
|
25 |
+
<a href="https://l.crowdin.com/next-js">
|
26 |
+
<picture>
|
27 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/crowdin-white.png?raw=true">
|
28 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/crowdin-dark.png?raw=true">
|
29 |
+
<img alt="Crowdin" src="public/assets/images/crowdin-dark.png?raw=true">
|
30 |
+
</picture>
|
31 |
+
</a>
|
32 |
+
</td>
|
33 |
+
<td align="center" width="33%">
|
34 |
+
<a href="https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo">
|
35 |
+
<picture>
|
36 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/sentry-white.png?raw=true">
|
37 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/sentry-dark.png?raw=true">
|
38 |
+
<img alt="Sentry" src="public/assets/images/sentry-dark.png?raw=true">
|
39 |
+
</picture>
|
40 |
+
</a>
|
41 |
+
<a href="https://about.codecov.io/codecov-free-trial/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo">
|
42 |
+
<picture>
|
43 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/codecov-white.svg?raw=true">
|
44 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/codecov-dark.svg?raw=true">
|
45 |
+
<img alt="Codecov" src="public/assets/images/codecov-dark.svg?raw=true">
|
46 |
+
</picture>
|
47 |
+
</a>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
<tr height="187px">
|
51 |
+
<td align="center" width="33%">
|
52 |
+
<a href="https://launch.arcjet.com/Q6eLbRE">
|
53 |
+
<picture>
|
54 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/arcjet-dark.svg?raw=true">
|
55 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/arcjet-light.svg?raw=true">
|
56 |
+
<img alt="Arcjet" src="public/assets/images/arcjet-light.svg?raw=true">
|
57 |
+
</picture>
|
58 |
+
</a>
|
59 |
+
</td>
|
60 |
+
<td align="center" width="33%">
|
61 |
+
<a href="https://posthog.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
62 |
+
<picture>
|
63 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://posthog.com/brand/posthog-logo-white.svg">
|
64 |
+
<source media="(prefers-color-scheme: light)" srcset="https://posthog.com/brand/posthog-logo.svg">
|
65 |
+
<img alt="PostHog" src="https://posthog.com/brand/posthog-logo.svg">
|
66 |
+
</picture>
|
67 |
+
</a>
|
68 |
+
</td>
|
69 |
+
<td align="center" width="33%">
|
70 |
+
<a href="https://betterstack.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
71 |
+
<picture>
|
72 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/better-stack-white.png?raw=true">
|
73 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/better-stack-dark.png?raw=true">
|
74 |
+
<img alt="Better Stack" src="public/assets/images/better-stack-dark.png?raw=true">
|
75 |
+
</picture>
|
76 |
+
</a>
|
77 |
+
</td>
|
78 |
+
</tr>
|
79 |
+
<tr height="187px">
|
80 |
+
<td align="center" width="33%">
|
81 |
+
<a href="https://www.checklyhq.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
82 |
+
<picture>
|
83 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/checkly-logo-dark.png?raw=true">
|
84 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/checkly-logo-light.png?raw=true">
|
85 |
+
<img alt="Checkly" src="public/assets/images/checkly-logo-light.png?raw=true">
|
86 |
+
</picture>
|
87 |
+
</a>
|
88 |
+
</td>
|
89 |
+
<td align="center" style=width="33%">
|
90 |
+
<a href="https://nextjs-boilerplate.com/pro-saas-starter-kit">
|
91 |
+
<img src="public/assets/images/nextjs-boilerplate-saas.png?raw=true" alt="Next.js SaaS Boilerplate with React" />
|
92 |
+
</a>
|
93 |
+
</td>
|
94 |
+
</tr>
|
95 |
+
<tr height="187px">
|
96 |
+
<td align="center" width="33%">
|
97 |
+
<a href="mailto:[email protected]">
|
98 |
+
Add your logo here
|
99 |
+
</a>
|
100 |
+
</td>
|
101 |
+
</tr>
|
102 |
+
</table>
|
103 |
+
|
104 |
+
### Demo
|
105 |
+
|
106 |
+
**Live demo: [Next.js Boilerplate](https://demo.nextjs-boilerplate.com)**
|
107 |
+
|
108 |
+
| Sign Up | Sign In |
|
109 |
+
| --- | --- |
|
110 |
+
| [](https://demo.nextjs-boilerplate.com/sign-up) | [](https://demo.nextjs-boilerplate.com/sign-in) |
|
111 |
+
|
112 |
+
### Features
|
113 |
+
|
114 |
+
Developer experience first, extremely flexible code structure and only keep what you need:
|
115 |
+
|
116 |
+
- ⚡ [Next.js](https://nextjs.org) with App Router support
|
117 |
+
- 🔥 Type checking [TypeScript](https://www.typescriptlang.org)
|
118 |
+
- 💎 Integrate with [Tailwind CSS](https://tailwindcss.com)
|
119 |
+
- ✅ Strict Mode for TypeScript and React 19
|
120 |
+
- 🔒 Authentication with [Clerk](https://clerk.com?utm_source=github&utm_medium=sponsorship&utm_campaign=nextjs-boilerplate): Sign up, Sign in, Sign out, Forgot password, Reset password, and more.
|
121 |
+
- 👤 Passwordless Authentication with Magic Links, Multi-Factor Auth (MFA), Social Auth (Google, Facebook, Twitter, GitHub, Apple, and more), Passwordless login with Passkeys, User Impersonation
|
122 |
+
- 📦 Type-safe ORM with DrizzleORM, compatible with PostgreSQL, SQLite, and MySQL
|
123 |
+
- 💽 Offline and local development database with PGlite
|
124 |
+
- 🌐 Multi-language (i18n) with [next-intl](https://next-intl-docs.vercel.app/) and [Crowdin](https://l.crowdin.com/next-js)
|
125 |
+
- ♻️ Type-safe environment variables with T3 Env
|
126 |
+
- ⌨️ Form handling with React Hook Form
|
127 |
+
- 🔴 Validation library with Zod
|
128 |
+
- 📏 Linter with [ESLint](https://eslint.org) (default Next.js, Next.js Core Web Vitals, Tailwind CSS and Antfu configuration)
|
129 |
+
- 💖 Code Formatter with [Prettier](https://prettier.io)
|
130 |
+
- 🦊 Husky for Git Hooks
|
131 |
+
- 🚫 Lint-staged for running linters on Git staged files
|
132 |
+
- 🚓 Lint git commit with Commitlint
|
133 |
+
- 📓 Write standard compliant commit messages with Commitizen
|
134 |
+
- 🦺 Unit Testing with Vitest and React Testing Library
|
135 |
+
- 🧪 Integration and E2E Testing with Playwright
|
136 |
+
- 👷 Run tests on pull request with GitHub Actions
|
137 |
+
- 🎉 Storybook for UI development
|
138 |
+
- 🚨 Error Monitoring with [Sentry](https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo)
|
139 |
+
- ☂️ Code coverage with [Codecov](https://about.codecov.io/codecov-free-trial/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo)
|
140 |
+
- 📝 Logging with Pino.js and Log Management with [Better Stack](https://betterstack.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate)
|
141 |
+
- 🖥️ Monitoring as Code with [Checkly](https://www.checklyhq.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate)
|
142 |
+
- 🔐 Security and bot protection ([Arcjet](https://launch.arcjet.com/Q6eLbRE))
|
143 |
+
- 🎁 Automatic changelog generation with Semantic Release
|
144 |
+
- 🔍 Visual testing with Percy (Optional)
|
145 |
+
- 💡 Absolute Imports using `@` prefix
|
146 |
+
- 🗂 VSCode configuration: Debug, Settings, Tasks and Extensions
|
147 |
+
- 🤖 SEO metadata, JSON-LD and Open Graph tags
|
148 |
+
- 🗺️ Sitemap.xml and robots.txt
|
149 |
+
- ⌘ Database exploration with Drizzle Studio and CLI migration tool with Drizzle Kit
|
150 |
+
- ⚙️ [Bundler Analyzer](https://www.npmjs.com/package/@next/bundle-analyzer)
|
151 |
+
- 🌈 Include a FREE minimalist theme
|
152 |
+
- 💯 Maximize lighthouse score
|
153 |
+
|
154 |
+
Built-in feature from Next.js:
|
155 |
+
|
156 |
+
- ☕ Minify HTML & CSS
|
157 |
+
- 💨 Live reload
|
158 |
+
- ✅ Cache busting
|
159 |
+
|
160 |
+
### Philosophy
|
161 |
+
|
162 |
+
- Nothing is hidden from you, allowing you to make any necessary adjustments to suit your requirements and preferences.
|
163 |
+
- Dependencies are regularly updated on a monthly basis
|
164 |
+
- Start for free without upfront costs
|
165 |
+
- Easy to customize
|
166 |
+
- Minimal code
|
167 |
+
- Unstyled template
|
168 |
+
- SEO-friendly
|
169 |
+
- 🚀 Production-ready
|
170 |
+
|
171 |
+
### Requirements
|
172 |
+
|
173 |
+
- Node.js 20+ and npm
|
174 |
+
|
175 |
+
### Getting started
|
176 |
+
|
177 |
+
Run the following command on your local environment:
|
178 |
+
|
179 |
+
```shell
|
180 |
+
git clone --depth=1 https://github.com/ixartz/Next-js-Boilerplate.git my-project-name
|
181 |
+
cd my-project-name
|
182 |
+
npm install
|
183 |
+
```
|
184 |
+
|
185 |
+
For your information, all dependencies are updated every month.
|
186 |
+
|
187 |
+
Then, you can run the project locally in development mode with live reload by executing:
|
188 |
+
|
189 |
+
```shell
|
190 |
+
npm run dev
|
191 |
+
```
|
192 |
+
|
193 |
+
Open http://localhost:3000 with your favorite browser to see your project.
|
194 |
+
|
195 |
+
### Set up authentication
|
196 |
+
|
197 |
+
To get started, you will need to create a Clerk account at [Clerk.com](https://clerk.com?utm_source=github&utm_medium=sponsorship&utm_campaign=nextjs-boilerplate) and create a new application in the Clerk Dashboard. Once you have done that, copy the `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` values and add them to the `.env.local` file (not tracked by Git):
|
198 |
+
|
199 |
+
```shell
|
200 |
+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_pub_key
|
201 |
+
CLERK_SECRET_KEY=your_clerk_secret_key
|
202 |
+
```
|
203 |
+
|
204 |
+
Now you have a fully functional authentication system with Next.js, including features such as sign up, sign in, sign out, forgot password, reset password, update profile, update password, update email, delete account, and more.
|
205 |
+
|
206 |
+
### Set up remote database
|
207 |
+
|
208 |
+
The project uses DrizzleORM, a type-safe ORM that is compatible with PostgreSQL, SQLite, and MySQL databases. By default, the project is configured to seamlessly work with PostgreSQL, and you have the flexibility to choose any PostgreSQL database provider of your choice.
|
209 |
+
|
210 |
+
### Translation (i18n) setup
|
211 |
+
|
212 |
+
For translation, the project uses `next-intl` combined with [Crowdin](https://l.crowdin.com/next-js). As a developer, you only need to take care of the English (or another default language) version. Translations for other languages are automatically generated and handled by Crowdin. You can use Crowdin to collaborate with your translation team or translate the messages yourself with the help of machine translation.
|
213 |
+
|
214 |
+
To set up translation (i18n), create an account at [Crowdin.com](https://l.crowdin.com/next-js) and create a new project. In the newly created project, you will be able to find the project ID. You will also need to create a new Personal Access Token by going to Account Settings > API. Then, in your GitHub Actions, you need to define the following environment variables: `CROWDIN_PROJECT_ID` and `CROWDIN_PERSONAL_TOKEN`.
|
215 |
+
|
216 |
+
After defining the environment variables in your GitHub Actions, your localization files will be synchronized with Crowdin every time you push a new commit to the `main` branch.
|
217 |
+
|
218 |
+
### Project structure
|
219 |
+
|
220 |
+
```shell
|
221 |
+
.
|
222 |
+
├── README.md # README file
|
223 |
+
├── .github # GitHub folder
|
224 |
+
├── .husky # Husky configuration
|
225 |
+
├── .storybook # Storybook folder
|
226 |
+
├── .vscode # VSCode configuration
|
227 |
+
├── migrations # Database migrations
|
228 |
+
├── public # Public assets folder
|
229 |
+
├── src
|
230 |
+
│ ├── app # Next JS App (App Router)
|
231 |
+
│ ├── components # React components
|
232 |
+
│ ├── libs # 3rd party libraries configuration
|
233 |
+
│ ├── locales # Locales folder (i18n messages)
|
234 |
+
│ ├── models # Database models
|
235 |
+
│ ├── styles # Styles folder
|
236 |
+
│ ├── templates # Templates folder
|
237 |
+
│ ├── types # Type definitions
|
238 |
+
│ ├── utils # Utilities folder
|
239 |
+
│ └── validations # Validation schemas
|
240 |
+
├── tests
|
241 |
+
│ ├── e2e # E2E tests, also includes Monitoring as Code
|
242 |
+
│ └── integration # Integration tests
|
243 |
+
├── tailwind.config.js # Tailwind CSS configuration
|
244 |
+
└── tsconfig.json # TypeScript configuration
|
245 |
+
```
|
246 |
+
|
247 |
+
### Customization
|
248 |
+
|
249 |
+
You can easily configure Next js Boilerplate by searching the entire project for `FIXME:` to make quick customizations. Here are some of the most important files to customize:
|
250 |
+
|
251 |
+
- `public/apple-touch-icon.png`, `public/favicon.ico`, `public/favicon-16x16.png` and `public/favicon-32x32.png`: your website favicon
|
252 |
+
- `src/utils/AppConfig.ts`: configuration file
|
253 |
+
- `src/templates/BaseTemplate.tsx`: default theme
|
254 |
+
- `next.config.mjs`: Next.js configuration
|
255 |
+
- `.env`: default environment variables
|
256 |
+
|
257 |
+
You have full access to the source code for further customization. The provided code is just an example to help you start your project. The sky's the limit 🚀.
|
258 |
+
|
259 |
+
### Change database schema
|
260 |
+
|
261 |
+
To modify the database schema in the project, you can update the schema file located at `./src/models/Schema.ts`. This file defines the structure of your database tables using the Drizzle ORM library.
|
262 |
+
|
263 |
+
After making changes to the schema, generate a migration by running the following command:
|
264 |
+
|
265 |
+
```shell
|
266 |
+
npm run db:generate
|
267 |
+
```
|
268 |
+
|
269 |
+
This will create a migration file that reflects your schema changes. The migration is automatically applied during the next database interaction, so there is no need to run it manually or restart the Next.js server.
|
270 |
+
|
271 |
+
### Commit Message Format
|
272 |
+
|
273 |
+
The project follows the [Conventional Commits](https://www.conventionalcommits.org/) specification, meaning all commit messages must be formatted accordingly. To help you write commit messages, the project uses [Commitizen](https://github.com/commitizen/cz-cli), an interactive CLI that guides you through the commit process. To use it, run the following command:
|
274 |
+
|
275 |
+
```shell
|
276 |
+
npm run commit
|
277 |
+
```
|
278 |
+
|
279 |
+
One of the benefits of using Conventional Commits is the ability to automatically generate a `CHANGELOG` file. It also allows us to automatically determine the next version number based on the types of commits that are included in a release.
|
280 |
+
|
281 |
+
### Testing
|
282 |
+
|
283 |
+
All unit tests are located alongside the source code in the same directory, making them easier to find. The project uses Vitest and React Testing Library for unit testing. You can run the tests with the following command:
|
284 |
+
|
285 |
+
```shell
|
286 |
+
npm run test
|
287 |
+
```
|
288 |
+
|
289 |
+
### Integration & E2E Testing
|
290 |
+
|
291 |
+
The project uses Playwright for integration and end-to-end (E2E) testing. You can run the tests with the following commands:
|
292 |
+
|
293 |
+
```shell
|
294 |
+
npx playwright install # Only for the first time in a new environment
|
295 |
+
npm run test:e2e
|
296 |
+
```
|
297 |
+
|
298 |
+
In the local environment, visual testing is disabled, and the terminal will display the message `[percy] Percy is not running, disabling snapshots.`. By default, visual testing only runs in GitHub Actions.
|
299 |
+
|
300 |
+
### Enable Edge runtime (optional)
|
301 |
+
|
302 |
+
The App Router folder is compatible with the Edge runtime. You can enable it by adding the following lines `src/app/layouts.tsx`:
|
303 |
+
|
304 |
+
```tsx
|
305 |
+
export const runtime = 'edge';
|
306 |
+
```
|
307 |
+
|
308 |
+
For your information, the database migration is not compatible with the Edge runtime. So, you need to disable the automatic migration in `src/libs/DB.ts`:
|
309 |
+
|
310 |
+
```tsx
|
311 |
+
await migrate(db, { migrationsFolder: './migrations' });
|
312 |
+
```
|
313 |
+
|
314 |
+
After disabling it, you are required to run the migration manually with:
|
315 |
+
|
316 |
+
```shell
|
317 |
+
npm run db:migrate
|
318 |
+
```
|
319 |
+
|
320 |
+
You also require to run the command each time you want to update the database schema.
|
321 |
+
|
322 |
+
### Deploy to production
|
323 |
+
|
324 |
+
During the build process, database migrations are automatically executed, so there's no need to run them manually. However, you must define `DATABASE_URL` in your environment variables.
|
325 |
+
|
326 |
+
Then, you can generate a production build with:
|
327 |
+
|
328 |
+
```shell
|
329 |
+
$ npm run build
|
330 |
+
```
|
331 |
+
|
332 |
+
It generates an optimized production build of the boilerplate. To test the generated build, run:
|
333 |
+
|
334 |
+
```shell
|
335 |
+
$ npm run start
|
336 |
+
```
|
337 |
+
|
338 |
+
You also need to defined the environment variables `CLERK_SECRET_KEY` using your own key.
|
339 |
+
|
340 |
+
This command starts a local server using the production build. You can now open http://localhost:3000 in your preferred browser to see the result.
|
341 |
+
|
342 |
+
### Error Monitoring
|
343 |
+
|
344 |
+
The project uses [Sentry](https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo) to monitor errors. In the development environment, no additional setup is needed: Next.js Boilerplate is pre-configured to use Sentry and Spotlight (Sentry for Development). All errors will automatically be sent to your local Spotlight instance, allowing you to experience Sentry locally.
|
345 |
+
|
346 |
+
For production environment, you'll need to create a Sentry account and a new project. Then, in `next.config.mjs`, you need to update the `org` and `project` attributes in `withSentryConfig` function. Additionally, add your Sentry DSN to `sentry.client.config.ts`, `sentry.edge.config.ts` and `sentry.server.config.ts`.
|
347 |
+
|
348 |
+
### Code coverage
|
349 |
+
|
350 |
+
Next.js Boilerplate relies on [Codecov](https://about.codecov.io/codecov-free-trial/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo) for code coverage reporting solution. To enable Codecov, create a Codecov account and connect it to your GitHub account. Your repositories should appear on your Codecov dashboard. Select the desired repository and copy the token. In GitHub Actions, define the `CODECOV_TOKEN` environment variable and paste the token.
|
351 |
+
|
352 |
+
Make sure to create `CODECOV_TOKEN` as a GitHub Actions secret, do not paste it directly into your source code.
|
353 |
+
|
354 |
+
### Logging
|
355 |
+
|
356 |
+
The project uses Pino.js for logging. In the development environment, logs are displayed in the console by default.
|
357 |
+
|
358 |
+
For production, the project is already integrated with [Better Stack](https://betterstack.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate) to manage and query your logs using SQL. To use Better Stack, you need to create a [Better Stack](https://betterstack.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate) account and create a new source: go to your Better Stack Logs Dashboard > Sources > Connect source. Then, you need to give a name to your source and select Node.js as the platform.
|
359 |
+
|
360 |
+
After creating the source, you will be able to view and copy your source token. In your environment variables, paste the token into the `LOGTAIL_SOURCE_TOKEN` variable. Now, all logs will automatically be sent to and ingested by Better Stack.
|
361 |
+
|
362 |
+
### Checkly monitoring
|
363 |
+
|
364 |
+
The project uses [Checkly](https://www.checklyhq.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate) to ensure that your production environment is always up and running. At regular intervals, Checkly runs the tests ending with `*.check.e2e.ts` extension and notifies you if any of the tests fail. Additionally, you have the flexibility to execute tests from multiple locations to ensure that your application is available worldwide.
|
365 |
+
|
366 |
+
To use Checkly, you must first create an account on [their website](https://www.checklyhq.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate). After creating an account, generate a new API key in the Checkly Dashboard and set the `CHECKLY_API_KEY` environment variable in GitHub Actions. Additionally, you will need to define the `CHECKLY_ACCOUNT_ID`, which can also be found in your Checkly Dashboard under User Settings > General.
|
367 |
+
|
368 |
+
To complete the setup, update the `checkly.config.ts` file with your own email address and production URL.
|
369 |
+
|
370 |
+
### Arcjet security and bot protection
|
371 |
+
|
372 |
+
The project uses [Arcjet](https://launch.arcjet.com/Q6eLbRE), a security as code product that includes several features that can be used individually or combined to provide defense in depth for your site.
|
373 |
+
|
374 |
+
To set up Arcjet, [create a free account](https://launch.arcjet.com/Q6eLbRE) and get your API key. Then add it to the `ARCJET_KEY` environment variable.
|
375 |
+
|
376 |
+
Arcjet is configured with two main features: bot detection and the Arcjet Shield WAF:
|
377 |
+
|
378 |
+
- [Bot detection](https://docs.arcjet.com/bot-protection/concepts) is configured to allow search engines, preview link generators e.g. Slack and Twitter previews, and to allow common uptime monitoring services. All other bots, such as scrapers and AI crawlers, will be blocked. You can [configure additional bot types](https://docs.arcjet.com/bot-protection/identifying-bots) to allow or block.
|
379 |
+
- [Arcjet Shield WAF](https://docs.arcjet.com/shield/concepts) will detect and block common attacks such as SQL injection, cross-site scripting, and other OWASP Top 10 vulnerabilities.
|
380 |
+
|
381 |
+
Arcjet is configured with a central client at `src/libs/Arcjet.ts` that includes the Shield WAF rules. Additional rules are configured in `src/app/[locale]/layout.tsx` based on the page type.
|
382 |
+
|
383 |
+
### Useful commands
|
384 |
+
|
385 |
+
#### Bundle Analyzer
|
386 |
+
|
387 |
+
Next.js Boilerplate includes a built-in bundle analyzer. It can be used to analyze the size of your JavaScript bundles. To begin, run the following command:
|
388 |
+
|
389 |
+
```shell
|
390 |
+
npm run build-stats
|
391 |
+
```
|
392 |
+
|
393 |
+
By running the command, it'll automatically open a new browser window with the results.
|
394 |
+
|
395 |
+
#### Database Studio
|
396 |
+
|
397 |
+
The project is already configured with Drizzle Studio to explore the database. You can run the following command to open the database studio:
|
398 |
+
|
399 |
+
```shell
|
400 |
+
npm run db:studio
|
401 |
+
```
|
402 |
+
|
403 |
+
Then, you can open https://local.drizzle.studio with your favorite browser to explore your database.
|
404 |
+
|
405 |
+
### VSCode information (optional)
|
406 |
+
|
407 |
+
If you are VSCode user, you can have a better integration with VSCode by installing the suggested extension in `.vscode/extension.json`. The starter code comes up with Settings for a seamless integration with VSCode. The Debug configuration is also provided for frontend and backend debugging experience.
|
408 |
+
|
409 |
+
With the plugins installed in your VSCode, ESLint and Prettier can automatically fix the code and display errors. The same applies to testing: you can install the VSCode Vitest extension to automatically run your tests, and it also shows the code coverage in context.
|
410 |
+
|
411 |
+
Pro tips: if you need a project wide-type checking with TypeScript, you can run a build with <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd> on Mac.
|
412 |
+
|
413 |
+
### Contributions
|
414 |
+
|
415 |
+
Everyone is welcome to contribute to this project. Feel free to open an issue if you have any questions or find a bug. Totally open to suggestions and improvements.
|
416 |
+
|
417 |
+
### License
|
418 |
+
|
419 |
+
Licensed under the MIT License, Copyright © 2024
|
420 |
+
|
421 |
+
See [LICENSE](LICENSE) for more information.
|
422 |
+
|
423 |
+
## Sponsors
|
424 |
+
|
425 |
+
<table width="100%">
|
426 |
+
<tr height="187px">
|
427 |
+
<td align="center" width="33%">
|
428 |
+
<a href="https://clerk.com?utm_source=github&utm_medium=sponsorship&utm_campaign=nextjs-boilerplate">
|
429 |
+
<picture>
|
430 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/6fb61971-3bf1-4580-98a0-10bd3f1040a2">
|
431 |
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/f80a8bb5-66da-4772-ad36-5fabc5b02c60">
|
432 |
+
<img alt="Clerk – Authentication & User Management for Next.js" src="https://github.com/ixartz/SaaS-Boilerplate/assets/1328388/f80a8bb5-66da-4772-ad36-5fabc5b02c60">
|
433 |
+
</picture>
|
434 |
+
</a>
|
435 |
+
</td>
|
436 |
+
<td align="center" width="33%">
|
437 |
+
<a href="https://l.crowdin.com/next-js">
|
438 |
+
<picture>
|
439 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/crowdin-white.png?raw=true">
|
440 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/crowdin-dark.png?raw=true">
|
441 |
+
<img alt="Crowdin" src="public/assets/images/crowdin-dark.png?raw=true">
|
442 |
+
</picture>
|
443 |
+
</a>
|
444 |
+
</td>
|
445 |
+
<td align="center" width="33%">
|
446 |
+
<a href="https://sentry.io/for/nextjs/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo">
|
447 |
+
<picture>
|
448 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/sentry-white.png?raw=true">
|
449 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/sentry-dark.png?raw=true">
|
450 |
+
<img alt="Sentry" src="public/assets/images/sentry-dark.png?raw=true">
|
451 |
+
</picture>
|
452 |
+
</a>
|
453 |
+
<a href="https://about.codecov.io/codecov-free-trial/?utm_source=github&utm_medium=paid-community&utm_campaign=general-fy25q1-nextjs&utm_content=github-banner-nextjsboilerplate-logo">
|
454 |
+
<picture>
|
455 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/codecov-white.svg?raw=true">
|
456 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/codecov-dark.svg?raw=true">
|
457 |
+
<img alt="Codecov" src="public/assets/images/codecov-dark.svg?raw=true">
|
458 |
+
</picture>
|
459 |
+
</a>
|
460 |
+
</td>
|
461 |
+
</tr>
|
462 |
+
<tr height="187px">
|
463 |
+
<td align="center" width="33%">
|
464 |
+
<a href="https://launch.arcjet.com/Q6eLbRE">
|
465 |
+
<picture>
|
466 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/arcjet-dark.svg?raw=true">
|
467 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/arcjet-light.svg?raw=true">
|
468 |
+
<img alt="Arcjet" src="public/assets/images/arcjet-light.svg?raw=true">
|
469 |
+
</picture>
|
470 |
+
</a>
|
471 |
+
</td>
|
472 |
+
<td align="center" width="33%">
|
473 |
+
<a href="https://posthog.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
474 |
+
<picture>
|
475 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://posthog.com/brand/posthog-logo-white.svg">
|
476 |
+
<source media="(prefers-color-scheme: light)" srcset="https://posthog.com/brand/posthog-logo.svg">
|
477 |
+
<img alt="PostHog" src="https://posthog.com/brand/posthog-logo.svg">
|
478 |
+
</picture>
|
479 |
+
</a>
|
480 |
+
</td>
|
481 |
+
<td align="center" width="33%">
|
482 |
+
<a href="https://betterstack.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
483 |
+
<picture>
|
484 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/better-stack-white.png?raw=true">
|
485 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/better-stack-dark.png?raw=true">
|
486 |
+
<img alt="Better Stack" src="public/assets/images/better-stack-dark.png?raw=true">
|
487 |
+
</picture>
|
488 |
+
</a>
|
489 |
+
</td>
|
490 |
+
</tr>
|
491 |
+
<tr height="187px">
|
492 |
+
<td align="center" width="33%">
|
493 |
+
<a href="https://www.checklyhq.com/?utm_source=github&utm_medium=sponsorship&utm_campaign=next-js-boilerplate">
|
494 |
+
<picture>
|
495 |
+
<source media="(prefers-color-scheme: dark)" srcset="public/assets/images/checkly-logo-dark.png?raw=true">
|
496 |
+
<source media="(prefers-color-scheme: light)" srcset="public/assets/images/checkly-logo-light.png?raw=true">
|
497 |
+
<img alt="Checkly" src="public/assets/images/checkly-logo-light.png?raw=true">
|
498 |
+
</picture>
|
499 |
+
</a>
|
500 |
+
</td>
|
501 |
+
<td align="center" style=width="33%">
|
502 |
+
<a href="https://nextjs-boilerplate.com/pro-saas-starter-kit">
|
503 |
+
<img src="public/assets/images/nextjs-boilerplate-saas.png?raw=true" alt="Next.js SaaS Boilerplate with React" />
|
504 |
+
</a>
|
505 |
+
</td>
|
506 |
+
</tr>
|
507 |
+
<tr height="187px">
|
508 |
+
<td align="center" width="33%">
|
509 |
+
<a href="mailto:[email protected]">
|
510 |
+
Add your logo here
|
511 |
+
</a>
|
512 |
+
</td>
|
513 |
+
</tr>
|
514 |
+
</table>
|
515 |
+
|
516 |
+
---
|
517 |
+
|
518 |
+
Made with ♥ by [CreativeDesignsGuru](https://creativedesignsguru.com) [](https://twitter.com/ixartz)
|
519 |
+
|
520 |
+
Looking for a custom boilerplate to kick off your project? I'd be glad to discuss how I can help you build one. Feel free to reach out anytime at [email protected]!
|
521 |
+
|
522 |
+
[](https://github.com/sponsors/ixartz)
|
checkly.config.ts
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { defineConfig } from 'checkly';
|
2 |
+
import { EmailAlertChannel, Frequency } from 'checkly/constructs';
|
3 |
+
|
4 |
+
const sendDefaults = {
|
5 |
+
sendFailure: true,
|
6 |
+
sendRecovery: true,
|
7 |
+
sendDegraded: true,
|
8 |
+
};
|
9 |
+
|
10 |
+
// FIXME: Add your production URL
|
11 |
+
const productionURL = 'https://demo.nextjs-boilerplate.com';
|
12 |
+
|
13 |
+
const emailChannel = new EmailAlertChannel('email-channel-1', {
|
14 |
+
// FIXME: add your own email address, Checkly will send you an email notification if a check fails
|
15 |
+
address: '[email protected]',
|
16 |
+
...sendDefaults,
|
17 |
+
});
|
18 |
+
|
19 |
+
export const config = defineConfig({
|
20 |
+
// FIXME: Add your own project name, logical ID, and repository URL
|
21 |
+
projectName: 'Next.js Boilerplate',
|
22 |
+
logicalId: 'nextjs-boilerplate',
|
23 |
+
repoUrl: 'https://github.com/ixartz/Next-js-Boilerplate',
|
24 |
+
checks: {
|
25 |
+
locations: ['us-east-1', 'eu-west-1'],
|
26 |
+
tags: ['website'],
|
27 |
+
runtimeId: '2024.02',
|
28 |
+
browserChecks: {
|
29 |
+
frequency: Frequency.EVERY_24H,
|
30 |
+
testMatch: '**/tests/e2e/**/*.check.e2e.ts',
|
31 |
+
alertChannels: [emailChannel],
|
32 |
+
},
|
33 |
+
playwrightConfig: {
|
34 |
+
use: {
|
35 |
+
baseURL: process.env.ENVIRONMENT_URL || productionURL,
|
36 |
+
extraHTTPHeaders: {
|
37 |
+
'x-vercel-protection-bypass': process.env.VERCEL_BYPASS_TOKEN,
|
38 |
+
},
|
39 |
+
},
|
40 |
+
},
|
41 |
+
},
|
42 |
+
cli: {
|
43 |
+
runLocation: 'eu-west-1',
|
44 |
+
reporters: ['list'],
|
45 |
+
},
|
46 |
+
});
|
47 |
+
|
48 |
+
export default config;
|
codecov.yml
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
coverage:
|
2 |
+
status:
|
3 |
+
patch: off
|
commitlint.config.ts
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { UserConfig } from '@commitlint/types';
|
2 |
+
|
3 |
+
const Configuration: UserConfig = {
|
4 |
+
extends: ['@commitlint/config-conventional'],
|
5 |
+
};
|
6 |
+
|
7 |
+
export default Configuration;
|
crowdin.yml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# Your Crowdin credentials
|
3 |
+
#
|
4 |
+
# No need modify CROWDIN_PROJECT_ID and CROWDIN_PERSONAL_TOKEN, you can set them in GitHub Actions secrets
|
5 |
+
project_id_env: CROWDIN_PROJECT_ID
|
6 |
+
api_token_env: CROWDIN_PERSONAL_TOKEN
|
7 |
+
base_path: .
|
8 |
+
base_url: 'https://api.crowdin.com' # https://{organization-name}.crowdin.com for Crowdin Enterprise
|
9 |
+
|
10 |
+
#
|
11 |
+
# Choose file structure in Crowdin
|
12 |
+
# e.g. true or false
|
13 |
+
#
|
14 |
+
preserve_hierarchy: true
|
15 |
+
|
16 |
+
#
|
17 |
+
# Files configuration
|
18 |
+
#
|
19 |
+
files:
|
20 |
+
- source: /src/locales/en.json
|
21 |
+
|
22 |
+
#
|
23 |
+
# Where translations will be placed
|
24 |
+
# e.g. "/resources/%two_letters_code%/%original_file_name%"
|
25 |
+
#
|
26 |
+
translation: '/src/locales/%two_letters_code%.json'
|
27 |
+
|
28 |
+
#
|
29 |
+
# File type
|
30 |
+
# e.g. "json"
|
31 |
+
#
|
32 |
+
type: json
|
drizzle.config.ts
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { defineConfig } from 'drizzle-kit';
|
2 |
+
|
3 |
+
export default defineConfig({
|
4 |
+
out: './migrations',
|
5 |
+
schema: './src/models/Schema.ts',
|
6 |
+
dialect: 'postgresql',
|
7 |
+
dbCredentials: {
|
8 |
+
url: process.env.DATABASE_URL ?? '',
|
9 |
+
},
|
10 |
+
verbose: true,
|
11 |
+
strict: true,
|
12 |
+
});
|
eslint.config.mjs
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import antfu from '@antfu/eslint-config';
|
2 |
+
import nextPlugin from '@next/eslint-plugin-next';
|
3 |
+
import jestDom from 'eslint-plugin-jest-dom';
|
4 |
+
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
5 |
+
import playwright from 'eslint-plugin-playwright';
|
6 |
+
import tailwind from 'eslint-plugin-tailwindcss';
|
7 |
+
import testingLibrary from 'eslint-plugin-testing-library';
|
8 |
+
|
9 |
+
export default antfu({
|
10 |
+
react: true,
|
11 |
+
typescript: true,
|
12 |
+
|
13 |
+
lessOpinionated: true,
|
14 |
+
isInEditor: false,
|
15 |
+
|
16 |
+
stylistic: {
|
17 |
+
semi: true,
|
18 |
+
},
|
19 |
+
|
20 |
+
formatters: {
|
21 |
+
css: true,
|
22 |
+
},
|
23 |
+
|
24 |
+
ignores: [
|
25 |
+
'migrations/**/*',
|
26 |
+
'next-env.d.ts',
|
27 |
+
],
|
28 |
+
}, ...tailwind.configs['flat/recommended'], jsxA11y.flatConfigs.recommended, {
|
29 |
+
plugins: {
|
30 |
+
'@next/next': nextPlugin,
|
31 |
+
},
|
32 |
+
rules: {
|
33 |
+
...nextPlugin.configs.recommended.rules,
|
34 |
+
...nextPlugin.configs['core-web-vitals'].rules,
|
35 |
+
},
|
36 |
+
}, {
|
37 |
+
files: [
|
38 |
+
'**/*.test.ts?(x)',
|
39 |
+
],
|
40 |
+
...testingLibrary.configs['flat/react'],
|
41 |
+
...jestDom.configs['flat/recommended'],
|
42 |
+
}, {
|
43 |
+
files: [
|
44 |
+
'**/*.spec.ts',
|
45 |
+
'**/*.e2e.ts',
|
46 |
+
],
|
47 |
+
...playwright.configs['flat/recommended'],
|
48 |
+
}, {
|
49 |
+
rules: {
|
50 |
+
'antfu/no-top-level-await': 'off', // Allow top-level await
|
51 |
+
'style/brace-style': ['error', '1tbs'], // Use the default brace style
|
52 |
+
'ts/consistent-type-definitions': ['error', 'type'], // Use `type` instead of `interface`
|
53 |
+
'react/prefer-destructuring-assignment': 'off', // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
|
54 |
+
'node/prefer-global/process': 'off', // Allow using `process.env`
|
55 |
+
'test/padding-around-all': 'error', // Add padding in test files
|
56 |
+
'test/prefer-lowercase-title': 'off', // Allow using uppercase titles in test titles
|
57 |
+
},
|
58 |
+
});
|
lint-staged.config.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
module.exports = {
|
2 |
+
'*': ['eslint --fix --no-warn-ignored'],
|
3 |
+
'**/*.ts?(x)': () => 'npm run check-types',
|
4 |
+
};
|
migrations/0000_init-db.sql
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CREATE TABLE IF NOT EXISTS "counter" (
|
2 |
+
"id" serial PRIMARY KEY NOT NULL,
|
3 |
+
"count" integer DEFAULT 0,
|
4 |
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
5 |
+
"created_at" timestamp DEFAULT now() NOT NULL
|
6 |
+
);
|
migrations/meta/0000_snapshot.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"id": "fd746382-d1ee-40c4-a173-db4142ca9fef",
|
3 |
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
4 |
+
"version": "7",
|
5 |
+
"dialect": "postgresql",
|
6 |
+
"tables": {
|
7 |
+
"public.counter": {
|
8 |
+
"name": "counter",
|
9 |
+
"schema": "",
|
10 |
+
"columns": {
|
11 |
+
"id": {
|
12 |
+
"name": "id",
|
13 |
+
"type": "serial",
|
14 |
+
"primaryKey": true,
|
15 |
+
"notNull": true
|
16 |
+
},
|
17 |
+
"count": {
|
18 |
+
"name": "count",
|
19 |
+
"type": "integer",
|
20 |
+
"primaryKey": false,
|
21 |
+
"notNull": false,
|
22 |
+
"default": 0
|
23 |
+
},
|
24 |
+
"updated_at": {
|
25 |
+
"name": "updated_at",
|
26 |
+
"type": "timestamp",
|
27 |
+
"primaryKey": false,
|
28 |
+
"notNull": true,
|
29 |
+
"default": "now()"
|
30 |
+
},
|
31 |
+
"created_at": {
|
32 |
+
"name": "created_at",
|
33 |
+
"type": "timestamp",
|
34 |
+
"primaryKey": false,
|
35 |
+
"notNull": true,
|
36 |
+
"default": "now()"
|
37 |
+
}
|
38 |
+
},
|
39 |
+
"indexes": {},
|
40 |
+
"foreignKeys": {},
|
41 |
+
"compositePrimaryKeys": {},
|
42 |
+
"uniqueConstraints": {}
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"enums": {},
|
46 |
+
"schemas": {},
|
47 |
+
"sequences": {},
|
48 |
+
"_meta": {
|
49 |
+
"columns": {},
|
50 |
+
"schemas": {},
|
51 |
+
"tables": {}
|
52 |
+
}
|
53 |
+
}
|
migrations/meta/_journal.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "7",
|
3 |
+
"dialect": "postgresql",
|
4 |
+
"entries": [
|
5 |
+
{
|
6 |
+
"idx": 0,
|
7 |
+
"version": "7",
|
8 |
+
"when": 1725916508373,
|
9 |
+
"tag": "0000_init-db",
|
10 |
+
"breakpoints": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
next-env.d.ts
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/// <reference types="next" />
|
2 |
+
/// <reference types="next/image-types/global" />
|
3 |
+
|
4 |
+
// NOTE: This file should not be edited
|
5 |
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
next.config.ts
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import withBundleAnalyzer from '@next/bundle-analyzer';
|
2 |
+
import { withSentryConfig } from '@sentry/nextjs';
|
3 |
+
import createNextIntlPlugin from 'next-intl/plugin';
|
4 |
+
import './src/libs/Env';
|
5 |
+
|
6 |
+
const withNextIntl = createNextIntlPlugin('./src/libs/i18n.ts');
|
7 |
+
|
8 |
+
const bundleAnalyzer = withBundleAnalyzer({
|
9 |
+
enabled: process.env.ANALYZE === 'true',
|
10 |
+
});
|
11 |
+
|
12 |
+
/** @type {import('next').NextConfig} */
|
13 |
+
export default withSentryConfig(
|
14 |
+
bundleAnalyzer(
|
15 |
+
withNextIntl({
|
16 |
+
eslint: {
|
17 |
+
dirs: ['.'],
|
18 |
+
},
|
19 |
+
poweredByHeader: false,
|
20 |
+
reactStrictMode: true,
|
21 |
+
serverExternalPackages: ['@electric-sql/pglite'],
|
22 |
+
}),
|
23 |
+
),
|
24 |
+
{
|
25 |
+
// For all available options, see:
|
26 |
+
// https://github.com/getsentry/sentry-webpack-plugin#options
|
27 |
+
// FIXME: Add your Sentry organization and project names
|
28 |
+
org: 'nextjs-boilerplate-org',
|
29 |
+
project: 'nextjs-boilerplate',
|
30 |
+
|
31 |
+
// Only print logs for uploading source maps in CI
|
32 |
+
silent: !process.env.CI,
|
33 |
+
|
34 |
+
// For all available options, see:
|
35 |
+
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
36 |
+
|
37 |
+
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
38 |
+
widenClientFileUpload: true,
|
39 |
+
|
40 |
+
// Automatically annotate React components to show their full name in breadcrumbs and session replay
|
41 |
+
reactComponentAnnotation: {
|
42 |
+
enabled: true,
|
43 |
+
},
|
44 |
+
|
45 |
+
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
|
46 |
+
// This can increase your server load as well as your hosting bill.
|
47 |
+
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
|
48 |
+
// side errors will fail.
|
49 |
+
tunnelRoute: '/monitoring',
|
50 |
+
|
51 |
+
// Hides source maps from generated client bundles
|
52 |
+
hideSourceMaps: true,
|
53 |
+
|
54 |
+
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
55 |
+
disableLogger: true,
|
56 |
+
|
57 |
+
// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
|
58 |
+
// See the following for more information:
|
59 |
+
// https://docs.sentry.io/product/crons/
|
60 |
+
// https://vercel.com/docs/cron-jobs
|
61 |
+
automaticVercelMonitors: true,
|
62 |
+
|
63 |
+
// Disable Sentry telemetry
|
64 |
+
telemetry: false,
|
65 |
+
},
|
66 |
+
);
|
package-lock.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
package.json
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "next-js-boilerplate",
|
3 |
+
"version": "3.60.5",
|
4 |
+
"author": "Ixartz (https://github.com/ixartz)",
|
5 |
+
"scripts": {
|
6 |
+
"dev:spotlight": "spotlight-sidecar",
|
7 |
+
"dev:next": "next dev",
|
8 |
+
"dev": "run-p dev:*",
|
9 |
+
"build": "next build",
|
10 |
+
"start": "next start",
|
11 |
+
"build-stats": "cross-env ANALYZE=true npm run build",
|
12 |
+
"clean": "rimraf .next out coverage",
|
13 |
+
"lint": "eslint .",
|
14 |
+
"lint:fix": "eslint . --fix",
|
15 |
+
"check-types": "tsc --noEmit --pretty",
|
16 |
+
"test": "vitest run",
|
17 |
+
"test:e2e": "playwright test",
|
18 |
+
"commit": "cz",
|
19 |
+
"db:generate": "drizzle-kit generate",
|
20 |
+
"db:migrate": "dotenv -c production -- drizzle-kit migrate",
|
21 |
+
"db:studio": "dotenv -c production -- drizzle-kit studio",
|
22 |
+
"storybook": "storybook dev -p 6006",
|
23 |
+
"storybook:build": "storybook build",
|
24 |
+
"storybook:serve": "http-server storybook-static --port 6006 --silent",
|
25 |
+
"serve-storybook": "run-s storybook:*",
|
26 |
+
"test-storybook:ci": "start-server-and-test serve-storybook http://127.0.0.1:6006 test-storybook",
|
27 |
+
"prepare": "husky"
|
28 |
+
},
|
29 |
+
"dependencies": {
|
30 |
+
"@arcjet/next": "^1.0.0-alpha.34",
|
31 |
+
"@clerk/localizations": "^3.9.0",
|
32 |
+
"@clerk/nextjs": "^6.9.0",
|
33 |
+
"@electric-sql/pglite": "^0.2.15",
|
34 |
+
"@hookform/resolvers": "^3.9.1",
|
35 |
+
"@logtail/pino": "^0.5.2",
|
36 |
+
"@sentry/nextjs": "^8.43.0",
|
37 |
+
"@spotlightjs/spotlight": "^2.7.0",
|
38 |
+
"@t3-oss/env-nextjs": "^0.11.1",
|
39 |
+
"drizzle-orm": "^0.38.0",
|
40 |
+
"next": "^15.1.0",
|
41 |
+
"next-intl": "^3.26.0",
|
42 |
+
"pg": "^8.13.1",
|
43 |
+
"pino": "^9.5.0",
|
44 |
+
"pino-pretty": "^13.0.0",
|
45 |
+
"react": "19.0.0",
|
46 |
+
"react-dom": "19.0.0",
|
47 |
+
"react-hook-form": "^7.54.0",
|
48 |
+
"zod": "^3.24.0"
|
49 |
+
},
|
50 |
+
"devDependencies": {
|
51 |
+
"@antfu/eslint-config": "^3.11.2",
|
52 |
+
"@commitlint/cli": "^19.6.0",
|
53 |
+
"@commitlint/config-conventional": "^19.6.0",
|
54 |
+
"@commitlint/cz-commitlint": "^19.5.0",
|
55 |
+
"@eslint-react/eslint-plugin": "^1.19.0",
|
56 |
+
"@faker-js/faker": "^9.3.0",
|
57 |
+
"@next/bundle-analyzer": "^15.1.0",
|
58 |
+
"@next/eslint-plugin-next": "^15.1.0",
|
59 |
+
"@percy/cli": "1.30.4",
|
60 |
+
"@percy/playwright": "^1.0.7",
|
61 |
+
"@playwright/test": "^1.49.1",
|
62 |
+
"@semantic-release/changelog": "^6.0.3",
|
63 |
+
"@semantic-release/git": "^10.0.1",
|
64 |
+
"@storybook/addon-essentials": "^8.4.7",
|
65 |
+
"@storybook/addon-interactions": "^8.4.7",
|
66 |
+
"@storybook/addon-links": "^8.4.7",
|
67 |
+
"@storybook/addon-onboarding": "^8.4.7",
|
68 |
+
"@storybook/blocks": "^8.4.7",
|
69 |
+
"@storybook/nextjs": "^8.4.7",
|
70 |
+
"@storybook/react": "^8.4.7",
|
71 |
+
"@storybook/test": "^8.4.7",
|
72 |
+
"@storybook/test-runner": "^0.20.1",
|
73 |
+
"@testing-library/dom": "^10.4.0",
|
74 |
+
"@testing-library/jest-dom": "^6.6.3",
|
75 |
+
"@testing-library/react": "^16.1.0",
|
76 |
+
"@types/node": "^22.10.1",
|
77 |
+
"@types/pg": "^8.11.10",
|
78 |
+
"@types/react": "^19.0.1",
|
79 |
+
"@vitejs/plugin-react": "^4.3.4",
|
80 |
+
"@vitest/coverage-v8": "^2.1.8",
|
81 |
+
"@vitest/expect": "^2.1.8",
|
82 |
+
"autoprefixer": "^10.4.20",
|
83 |
+
"checkly": "^4.15.0",
|
84 |
+
"commitizen": "^4.3.1",
|
85 |
+
"cross-env": "^7.0.3",
|
86 |
+
"cssnano": "^7.0.6",
|
87 |
+
"dotenv-cli": "^7.4.4",
|
88 |
+
"drizzle-kit": "^0.30.0",
|
89 |
+
"eslint": "^9.16.0",
|
90 |
+
"eslint-plugin-format": "^0.1.3",
|
91 |
+
"eslint-plugin-jest-dom": "^5.5.0",
|
92 |
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
93 |
+
"eslint-plugin-playwright": "^2.1.0",
|
94 |
+
"eslint-plugin-react-hooks": "^5.1.0",
|
95 |
+
"eslint-plugin-react-refresh": "^0.4.16",
|
96 |
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
97 |
+
"eslint-plugin-testing-library": "^7.1.1",
|
98 |
+
"http-server": "^14.1.1",
|
99 |
+
"husky": "^9.1.7",
|
100 |
+
"jsdom": "^25.0.1",
|
101 |
+
"lint-staged": "^15.2.11",
|
102 |
+
"npm-run-all": "^4.1.5",
|
103 |
+
"postcss": "^8.4.49",
|
104 |
+
"rimraf": "^6.0.1",
|
105 |
+
"semantic-release": "^24.2.0",
|
106 |
+
"start-server-and-test": "^2.0.8",
|
107 |
+
"storybook": "^8.4.7",
|
108 |
+
"tailwindcss": "^3.4.16",
|
109 |
+
"typescript": "^5.7.2",
|
110 |
+
"vite-tsconfig-paths": "^5.1.4",
|
111 |
+
"vitest": "^2.1.8",
|
112 |
+
"vitest-fail-on-console": "^0.7.1"
|
113 |
+
},
|
114 |
+
"config": {
|
115 |
+
"commitizen": {
|
116 |
+
"path": "@commitlint/cz-commitlint"
|
117 |
+
}
|
118 |
+
},
|
119 |
+
"release": {
|
120 |
+
"branches": [
|
121 |
+
"main"
|
122 |
+
],
|
123 |
+
"plugins": [
|
124 |
+
[
|
125 |
+
"@semantic-release/commit-analyzer",
|
126 |
+
{
|
127 |
+
"preset": "conventionalcommits"
|
128 |
+
}
|
129 |
+
],
|
130 |
+
"@semantic-release/release-notes-generator",
|
131 |
+
"@semantic-release/changelog",
|
132 |
+
[
|
133 |
+
"@semantic-release/npm",
|
134 |
+
{
|
135 |
+
"npmPublish": false
|
136 |
+
}
|
137 |
+
],
|
138 |
+
"@semantic-release/git",
|
139 |
+
"@semantic-release/github"
|
140 |
+
]
|
141 |
+
}
|
142 |
+
}
|
playwright.config.ts
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { defineConfig, devices } from '@playwright/test';
|
2 |
+
|
3 |
+
// Use process.env.PORT by default and fallback to port 3000
|
4 |
+
const PORT = process.env.PORT || 3000;
|
5 |
+
|
6 |
+
// Set webServer.url and use.baseURL with the location of the WebServer respecting the correct set port
|
7 |
+
const baseURL = `http://localhost:${PORT}`;
|
8 |
+
|
9 |
+
/**
|
10 |
+
* See https://playwright.dev/docs/test-configuration.
|
11 |
+
*/
|
12 |
+
export default defineConfig({
|
13 |
+
testDir: './tests',
|
14 |
+
// Look for files with the .spec.js or .e2e.js extension
|
15 |
+
testMatch: '*.@(spec|e2e).?(c|m)[jt]s?(x)',
|
16 |
+
// Timeout per test
|
17 |
+
timeout: 30 * 1000,
|
18 |
+
// Fail the build on CI if you accidentally left test.only in the source code.
|
19 |
+
forbidOnly: !!process.env.CI,
|
20 |
+
// Reporter to use. See https://playwright.dev/docs/test-reporters
|
21 |
+
reporter: process.env.CI ? 'github' : 'list',
|
22 |
+
|
23 |
+
expect: {
|
24 |
+
// Set timeout for async expect matchers
|
25 |
+
timeout: 10 * 1000,
|
26 |
+
},
|
27 |
+
|
28 |
+
// Run your local dev server before starting the tests:
|
29 |
+
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
30 |
+
webServer: {
|
31 |
+
command: process.env.CI ? 'npm run start' : 'npm run dev:next',
|
32 |
+
url: baseURL,
|
33 |
+
timeout: 2 * 60 * 1000,
|
34 |
+
reuseExistingServer: !process.env.CI,
|
35 |
+
},
|
36 |
+
|
37 |
+
// Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions.
|
38 |
+
use: {
|
39 |
+
// Use baseURL so to make navigations relative.
|
40 |
+
// More information: https://playwright.dev/docs/api/class-testoptions#test-options-base-url
|
41 |
+
baseURL,
|
42 |
+
|
43 |
+
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
|
44 |
+
trace: process.env.CI ? 'retain-on-failure' : undefined,
|
45 |
+
|
46 |
+
// Record videos when retrying the failed test.
|
47 |
+
video: process.env.CI ? 'retain-on-failure' : undefined,
|
48 |
+
},
|
49 |
+
|
50 |
+
projects: [
|
51 |
+
{
|
52 |
+
name: 'chromium',
|
53 |
+
use: { ...devices['Desktop Chrome'] },
|
54 |
+
},
|
55 |
+
...(process.env.CI
|
56 |
+
? [
|
57 |
+
{
|
58 |
+
name: 'firefox',
|
59 |
+
use: { ...devices['Desktop Firefox'] },
|
60 |
+
},
|
61 |
+
]
|
62 |
+
: []),
|
63 |
+
],
|
64 |
+
});
|
postcss.config.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Please do not use the array form (like ['tailwindcss', 'postcss-preset-env'])
|
2 |
+
// it will create an unexpected error: Invalid PostCSS Plugin found: [0]
|
3 |
+
|
4 |
+
/** @type {import('postcss-load-config').Config} */
|
5 |
+
module.exports = {
|
6 |
+
plugins: {
|
7 |
+
tailwindcss: {},
|
8 |
+
autoprefixer: {},
|
9 |
+
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
|
10 |
+
},
|
11 |
+
};
|
public/apple-touch-icon.png
ADDED
![]() |
public/assets/images/arcjet-dark.svg
ADDED
|
public/assets/images/arcjet-light.svg
ADDED
|
public/assets/images/better-stack-dark.png
ADDED
![]() |
public/assets/images/better-stack-white.png
ADDED
![]() |
public/assets/images/checkly-logo-dark.png
ADDED
![]() |
public/assets/images/checkly-logo-light.png
ADDED
![]() |
public/assets/images/clerk-logo-dark.png
ADDED
![]() |
public/assets/images/codecov-dark.svg
ADDED
|
public/assets/images/codecov-white.svg
ADDED
|
public/assets/images/crowdin-dark.png
ADDED
![]() |
public/assets/images/crowdin-white.png
ADDED
![]() |
public/assets/images/nextjs-boilerplate-saas.png
ADDED
![]() |
public/assets/images/nextjs-boilerplate-sign-in.png
ADDED
![]() |