mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +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"
|
DATABASE_URL="mysql://root:root@127.0.0.1:3306/MyDatabase"
|
||||||
PORT=3000
|
|
||||||
@@ -10,5 +10,6 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return config;
|
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",
|
"@prisma/client": "^3.13.0",
|
||||||
"@svgr/webpack": "^6.2.1",
|
"@svgr/webpack": "^6.2.1",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"next": "^12.1.5",
|
"next": "^12.1.6",
|
||||||
"next-auth": "^4.0.6",
|
"next-auth": "^4.0.6",
|
||||||
"next-connect": "^0.12.2",
|
"next-connect": "^0.12.2",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
"react-select": "^5.3.1",
|
"react-select": "^5.3.1",
|
||||||
"sass": "^1.46.0",
|
"sass": "^1.46.0",
|
||||||
|
"sharp": "^0.30.4",
|
||||||
"toastr": "^2.1.4"
|
"toastr": "^2.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ export async function getServerSideProps() {
|
|||||||
|
|
||||||
const favorites = [] as Link[];
|
const favorites = [] as Link[];
|
||||||
const categories = categoriesDB.map((categoryDB) => {
|
const categories = categoriesDB.map((categoryDB) => {
|
||||||
console.log(categoryDB)
|
|
||||||
const category = BuildCategory(categoryDB);
|
const category = BuildCategory(categoryDB);
|
||||||
category.links.map((link) => link.favorite ? favorites.push(link) : null);
|
category.links.map((link) => link.favorite ? favorites.push(link) : null);
|
||||||
return category;
|
return category;
|
||||||
|
|||||||
Reference in New Issue
Block a user