fix font not loading with next.js@12

This commit is contained in:
Sonny
2022-05-07 00:12:35 +02:00
parent c03f41d3f8
commit 7401a1d91d
5 changed files with 1301 additions and 184 deletions

View File

@@ -1,2 +1 @@
DATABASE_URL="mysql://root:root@127.0.0.1:3306/MyDatabase"
PORT=3000
DATABASE_URL="mysql://root:root@127.0.0.1:3306/MyDatabase"

View File

@@ -10,5 +10,6 @@ module.exports = {
});
return config;
}
},
optimizeFonts: false
}

1475
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@
"@prisma/client": "^3.13.0",
"@svgr/webpack": "^6.2.1",
"axios": "^0.27.2",
"next": "^12.1.5",
"next": "^12.1.6",
"next-auth": "^4.0.6",
"next-connect": "^0.12.2",
"nprogress": "^0.2.0",
@@ -23,6 +23,7 @@
"react-dom": "^18.1.0",
"react-select": "^5.3.1",
"sass": "^1.46.0",
"sharp": "^0.30.4",
"toastr": "^2.1.4"
},
"devDependencies": {

View File

@@ -46,7 +46,6 @@ export async function getServerSideProps() {
const favorites = [] as Link[];
const categories = categoriesDB.map((categoryDB) => {
console.log(categoryDB)
const category = BuildCategory(categoryDB);
category.links.map((link) => link.favorite ? favorites.push(link) : null);
return category;