Skip to content

Commit 1e7611e

Browse files
author
Bingle Kruger
committed
Vercel deployment
1 parent e9a6e78 commit 1e7611e

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

ntc-web/.eslintrc.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": [
3+
"next/core-web-vitals",
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended"
6+
],
7+
"rules": {
8+
"@typescript-eslint/no-unused-vars": ["warn", {
9+
"argsIgnorePattern": "^_",
10+
"varsIgnorePattern": "^_"
11+
}],
12+
"@typescript-eslint/no-explicit-any": "warn",
13+
"react-hooks/exhaustive-deps": "warn",
14+
"@next/next/no-html-link-for-pages": "warn",
15+
"react/no-unescaped-entities": "off",
16+
"@typescript-eslint/no-unused-expressions": "warn",
17+
"@typescript-eslint/ban-ts-comment": "warn"
18+
}
19+
}

ntc-web/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint",
9+
"lint": "next lint --fix",
1010
"test:db": "ts-node --project tsconfig.seed.json scripts/test-db.ts",
1111
"db:seed": "prisma db seed",
1212
"db:push": "prisma db push",
1313
"db:studio": "prisma studio",
1414
"postinstall": "prisma generate",
15-
"vercel-build": "prisma generate && prisma db push && next build"
15+
"vercel-build": "prisma generate && prisma db push && prisma db seed && SKIP_LINTING=true next build"
1616
},
1717
"prisma": {
1818
"seed": "ts-node --project tsconfig.seed.json prisma/seed.ts"

ntc-web/vercel.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 2,
3+
"buildCommand": "npm run vercel-build",
4+
"installCommand": "npm install",
5+
"framework": "nextjs",
6+
"outputDirectory": ".next",
7+
"ignoreCommand": "echo 'Skipping lint check'",
8+
"env": {
9+
"NEXT_TELEMETRY_DISABLED": "1",
10+
"SKIP_LINTING": "true"
11+
}
12+
}

0 commit comments

Comments
 (0)