fixed warnings

This commit is contained in:
Andreas 2024-06-25 08:09:53 +02:00
parent 943267be04
commit 717b41384c
2 changed files with 6 additions and 4 deletions

View File

@ -2,11 +2,14 @@ const withMDX = require('@next/mdx')()
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
sassOptions: {
includePaths: ['*'],
},
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
experimental: { experimental: {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
serverComponentsExternalPackages: ['sequelize', 'sequelize-typescript', 'bcrypt', '@sequelize/core', '@/app/lib/api/error'], serverComponentsExternalPackages: ['sequelize', 'sequelize-typescript', 'bcrypt', '@sequelize/core', '@/app/lib/api/error'],
serverActions: { serverActions: {
allowedOrigins: ['localhost', 'localhost:3000']
}, },
}, },
webpack: (config) => { webpack: (config) => {

View File

@ -17,7 +17,6 @@
"@types/bcrypt": "^5.0.0", "@types/bcrypt": "^5.0.0",
"@types/cookie": "^0.5.1", "@types/cookie": "^0.5.1",
"@types/mdx": "^2.0.13", "@types/mdx": "^2.0.13",
"@types/node": "20.14.0",
"@types/react": "18.2.30", "@types/react": "18.2.30",
"@types/react-bootstrap": "^0.32.32", "@types/react-bootstrap": "^0.32.32",
"@types/react-dom": "18.2.14", "@types/react-dom": "18.2.14",
@ -54,7 +53,7 @@
"typescript": "5.0.4" "typescript": "5.0.4"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.12.7", "@types/node": "^20.14.0",
"@types/swagger-ui-react": "^4.18.3", "@types/swagger-ui-react": "^4.18.3",
"sqlite3": "^5.1.7" "sqlite3": "^5.1.7"
} }