How to handle large Markdown files in Nuxt Content 3?
I'm currently migrating my app from Nuxt Content 2 to Nuxt Content 3 and ran into a problem. I have a large Markdown file (about 13,000 lines) that contains the full documentation of my API (I can't split it - it needs to be one page so users can use CTRL+F, etc.) There was no issue with this file in Nuxt Content 2, but in Nuxt Content 3, when using
better-sqlite3
better-sqlite3
, the file simply doesn't work. In the console, I get these errors:
[unhandledRejection] near "AqVXMov94MXnIeqdox4wPbKzA6p3XzCoSV2agF4I7jI": syntax error[unhandledRejection] unrecognized token: "\"
[unhandledRejection] near "AqVXMov94MXnIeqdox4wPbKzA6p3XzCoSV2agF4I7jI": syntax error[unhandledRejection] unrecognized token: "\"
(where
AqVXMov94MXnIeqdox4wPbKzA6p3XzCoSV2agF4I7jI
AqVXMov94MXnIeqdox4wPbKzA6p3XzCoSV2agF4I7jI
is the hash of that md file).
How can I fix this?
ps. entire site is later generated with nuxt generate, so I don’t need SSR