fix: #1444 async load google fonts

This commit is contained in:
Yidadaa
2023-05-14 23:25:22 +08:00
parent 6da3aab046
commit 03163d6a61
3 changed files with 16 additions and 6 deletions

View File

@@ -10,6 +10,10 @@ const nextConfig = {
source: "/api/proxy/:path*",
destination: "https://api.openai.com/:path*",
},
{
source: "/google-fonts/:path*",
destination: "https://fonts.googleapis.com/:path*",
},
];
const apiUrl = process.env.API_URL;