mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
fix font not loading with next.js@12
This commit is contained in:
@@ -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"
|
||||
@@ -10,5 +10,6 @@ module.exports = {
|
||||
});
|
||||
|
||||
return config;
|
||||
}
|
||||
},
|
||||
optimizeFonts: false
|
||||
}
|
||||
|
||||
1475
package-lock.json
generated
1475
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user