nuxt-themes/docus

yarn build from CloudFlare Pages: [error] [nitro]

tuanductran opened this issue · 4 comments

[info] [nitro] Building Nitro Server (preset: cloudflare-pages)

[error] [nitro] RollupError: "randomFillSync" is not exported by "node_modules/unenv/runtime/node/crypto/index.mjs", imported by "node_modules/nanoid/index.js".

atinux commented

Do you plan to use CloudFlare Pages as static hosting?

if so are you using the nuxt generate command?

@atinux No, I use NITRO_PRESET=cloudflare-pages yarn build

atinux commented

For CF Pages with nuxt content it's better to use yarn generate