Honza Pobořil

Results 217 comments of Honza Pobořil
trafficstars

# Workaround ``` "scripts": { "cloudflare": "NITRO_PRESET=cloudflare_pages nuxt build && NITRO_PRESET=static nuxt generate && cp -r dist/_worker.js public/_routes.json .output/public/ && rm -r dist && mv .output/public dist # https://github.com/nuxt/nuxt/issues/28526" ```

@therealstein No, this was not typo, I intentionally use custom _routes.json because the generated will run SSR even when we have html files there. This waste worker requests and also...

> Would you see if you can reproduce this in pure Nitro ([reproduction sandbox](https://stackblitz.com/github/unjs/nitro/tree/main/examples/hello-world)), and if so, raise [there](https://github.com/unjs/nitro/issues/new/choose)? 🙏 > > This is very unlikely to be a Nuxt-specific...

@danielroe This generates static html files, but not worker routes: ``` NITRO_PRESET=cloudflare_pages_static nuxt generate ``` Also `cloudflare_pages_static` is not mentioned in the docs. Other presets mentioned there does not generate...

Aha, this things changed :-) Moved to this command: ``` NITRO_PRESET=cloudflare_pages_static npx nuxt build ``` and in nuxt.config.ts: ``` nitro: { prerender: { crawlLinks: true, }, }, ``` It correctly...

You are correct, it works like this. For others: - nuxt.config.ts: ``` compatibilityDate: '2023-02-01', nitro: { prerender: { crawlLinks: true, routes: ['/'], }, }, ``` - `NITRO_PRESET=cloudflare_pages npx nuxt build`

Disabling scheduled backup on battery and on tethering is pretty common use-case what many other backup solutions support. For user is should be just two checkboxes, by default turned on.