Browse Source

update config

main
root 5 days ago
parent
commit
96ad2129bb
  1. 11
      next.config.js
  2. 9
      package.json
  3. 27
      tsconfig.json

11
next.config.js

@ -1,5 +1,5 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = {
const nextConfig = {
reactStrictMode: false, reactStrictMode: false,
images: { images: {
remotePatterns: [ remotePatterns: [
@ -35,6 +35,15 @@ const nextConfig = {
}, },
], ],
}, },
typescript: {
ignoreBuildErrors: true,
},
eslint: {
ignoreDuringBuilds: true,
},
trailingSlash: true,
}; };
module.exports = nextConfig; module.exports = nextConfig;

9
package.json

@ -4,9 +4,16 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"lint:es": "eslint --ext .js,.jsx .",
"lint:fix": "eslint --fix --ext .js,.jsx .",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint"
"lint": "next lint",
"export": "next export",
"clear-all": "rm -rf .next node_modules",
"re-start": "rm -rf .next node_modules && yarn install && yarn dev",
"re-build": "rm -rf .next node_modules && yarn install && yarn build"
}, },
"dependencies": { "dependencies": {
"@headlessui/react": "^1.7.14", "@headlessui/react": "^1.7.14",

27
tsconfig.json

@ -14,16 +14,33 @@
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true, "incremental": true,
"paths": {
"@/*": ["./src/*"],
"@components/*": ["src/components/*"],
"@containers/*": ["src/containers/*"],
"@contexts/*": ["src/contexts/*"],
"@framework/*": ["src/framework/basic-rest/*"],
"@settings/*": ["src/settings/*"],
"@styles/*": ["src/styles/*"],
"@utils/*": ["src/utils/*"]
},
// "paths": {
// },
"incremental": true,
"baseUrl": ".",
"plugins": [ "plugins": [
{ {
"name": "next" "name": "next"
} }
], ],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
// "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": [
"next-env.d.ts",
"additional.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }
Loading…
Cancel
Save