It becomes like the module is not included, and it becomes module noand it becomes module not found.

I'm trying to create a site that uses markdown in Nextjs, and the npm run dev dollar works well, but I'm told that there is no module in the cf pages after committing. What should I do? - Deployment ID: a1e42eae-c2a1-425b-9b3f-5f9330f6cf54 - My page: https://markdown-test.sky-wiki-next.pages.dev - My account ID: 01c285a8f473079f90d8df897a548a3e - An error that occurred: Module not found (This sentence uses a translation from Japanese to English)
2 Replies
Isaac McFadyen
Isaac McFadyen4mo ago
You can't use fs in Workers or Pages. They have no file system and so there'd be nothing to read anyway. I'm not familiar with Next.js but I believe there's a way to generate those pages at build-time or otherwise allow the markdown to be deployed with Pages.
okakajp
okakajpOP4mo ago
thanks you I'll ask on the Nextjs server
Want results from more Discord servers?
Add your server