Skip to content

Commit 786f4e5

Browse files
committed
move fonts to private directory
1 parent c8ebc71 commit 786f4e5

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ Thank you for being a part of the Tiptap community!
2121

2222
## License
2323

24-
This project is licensed under the [Tiptap Documentation Software License](LICENSE) license. This applies to all files except those in the `src/content` directory, which contains the documentation content or the `public/assets/fonts` directory which contains our fonts. The documentation content is licensed under the [MIT](LICENSE-DOCS) license. The fonts licenses can be found in `public/assets/fonts/LICENSE.txt`.
24+
This project is licensed under the [Tiptap Documentation Software License](LICENSE) license. This applies to all files except those in the `src/content` directory, which contains the documentation content or the `public/assets/fonts` directory which contains our fonts. The documentation content is licensed under the [MIT](LICENSE-DOCS) license. The fonts licenses can be found in `src/assets/fonts/LICENSE.txt`.

src/app/api/og/route.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export async function GET(req: NextRequest) {
99
const category = req.nextUrl.searchParams.get('category') ?? null
1010

1111
const fontBoldRawData = fs.readFileSync(
12-
path.join(process.cwd(), './public/assets/fonts/Inter-Bold.otf'),
12+
path.join(process.cwd(), './src/assets/fonts/Inter-Bold.otf'),
1313
)
1414
// convert to ArrayBuffer
1515
const fontBoldData = new Uint8Array(fontBoldRawData).buffer
1616

1717
const fontSemiBoldRawData = fs.readFileSync(
18-
path.join(process.cwd(), './public/assets/fonts/Inter-SemiBold.otf'),
18+
path.join(process.cwd(), './src/assets/fonts/Inter-SemiBold.otf'),
1919
)
2020
// convert to ArrayBuffer
2121
const fontSemiBoldData = new Uint8Array(fontSemiBoldRawData).buffer
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)