blog-server/patch-font.js
2024-01-14 22:57:49 +08:00

9 lines
288 B
JavaScript

const fs = require("fs");
const path = require("path");
const source = path.resolve(__dirname, "NotoSansSC-Regular.ttf");
const target = path.resolve(__dirname, "node_modules/next/dist/compiled/@vercel/og/noto-sans-v27-latin-regular.ttf");
fs.rmSync(target);
fs.cpSync(source, target);