Enable turbo for local development

This commit is contained in:
Sam Becker 2025-02-10 09:18:44 -06:00
parent eedd86efae
commit d2893326d7
2 changed files with 6 additions and 16 deletions

View File

@ -1,7 +1,7 @@
{
"name": "exif-photo-blog",
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",

View File

@ -4,21 +4,11 @@ import { cwd } from 'process';
const FONT_FAMILY_IBM_PLEX_MONO = 'IBMPlexMono';
const getFontData = async () => {
let data;
if (typeof fs !== 'undefined') {
data = fs.readFileSync(path.join(
cwd(),
'/public/fonts/IBMPlexMono-Medium.ttf',
));
} else {
data = await fetch(new URL(
'/public/fonts/IBMPlexMono-Medium.ttf',
import.meta.url,
)).then(res => res.arrayBuffer());
}
return data;
};
const getFontData = async () =>
fs.readFileSync(path.join(
cwd(),
'/public/fonts/IBMPlexMono-Medium.ttf',
));
export const getIBMPlexMonoMedium = () => getFontData()
.then(data => ({