\n\n\n### Logs\n\n```shell-script\n> nuxt generate\n\nNuxt 3.15.0 with Nitro 2.10.4 3:46:00 PM\nℹ Using Nitro server preset: static 3:46:01 PM\nℹ Compiled plugins.client.mjs in 511.86ms 3:46:06 PM\nℹ Compiled types/plugins.d.ts in 523.6ms 3:46:06 PM\nℹ Building client... 3:46:08 PM\nℹ vite v6.0.5 building for production... 3:46:08 PM\nℹ ✓ 135 modules transformed. 3:46:11 PM\nℹ .nuxt/dist/client/manifest.json 1.06 kB │ gzip: 0.29 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/error-500.dGVH929u.css 1.88 kB │ gzip: 0.72 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/error-404.C3V-3Mc4.css 3.56 kB │ gzip: 1.11 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/entry.ofCu9KLV.css 12.41 kB │ gzip: 2.57 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/DSVsJNNr.js 3.39 kB │ gzip: 1.53 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/Cyk1OFr2.js 9.41 kB │ gzip: 3.77 kB 3:46:11 PM\nℹ .nuxt/dist/client/_nuxt/B8f4TB0u.js 219.51 kB │ gzip: 62.59 kB 3:46:11 PM\nℹ ✓ built in 2.94s 3:46:11 PM\n✔ Client built in 2952ms 3:46:11 PM\nℹ Building server... 3:46:11 PM\nℹ vite v6.0.5 building SSR bundle for production... 3:46:11 PM\nℹ ✓ 49 modules transformed. 3:46:12 PM\nℹ .nuxt/dist/server/_nuxt/entry-styles.C7mjwxNe.mjs 0.08 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-404-styles.PedwCpCK.mjs 0.08 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-500-styles.K0bbvuT_.mjs 0.08 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/welcome-styles.CCGfeDbY.mjs 0.15 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-404-styles.B5yeQDbX.mjs 0.15 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-500-styles.HhVXVi60.mjs 0.15 kB 3:46:13 PM\nℹ .nuxt/dist/server/styles.mjs 1.11 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-Bj5KKHbJ.js 2.10 kB │ map: 0.12 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-COU7bu3q.js 3.77 kB │ map: 0.12 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-500-D4R_5GhE.js 4.54 kB │ map: 5.36 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/entry-styles-1.mjs-Di7eYM5N.js 12.67 kB │ map: 0.11 kB 3:46:13 PM\nℹ .nuxt/dist/server/_nuxt/error-404-DME_KJAK.js 15.64 kB │ map: 29.05 kB 3:46:13 PM\nℹ .nuxt/dist/server/server.mjs 124.55 kB │ map: 182.05 kB 3:46:13 PM\nℹ ✓ built in 1.40s 3:46:13 PM\n✔ Server built in 1451ms 3:46:13 PM\nℹ Initializing prerenderer nitro 3:46:13 PM\nℹ Prerendering 3 initial routes with crawler nitro 3:46:16 PM\n ├─ /200.html (323ms) nitro 3:46:17 PM\n ├─ /404.html (322ms) nitro 3:46:17 PM\n ├─ / (343ms) nitro 3:46:17 PM\n ├─ /some-sub-path/_nuxt/builds/meta/44c8cfbf-f224-48e5-8e0b-58235722c140.json (3ms) nitro 3:46:17 PM\n │ ├── [404] Cannot find static asset /_nuxt/builds/meta/44c8cfbf-f224-48e5-8e0b-58235722c140.json\n │ └── Linked from /\n ├─ /some-sub-path/_payload.json?44c8cfbf-f224-48e5-8e0b-58235722c140 (3ms) (skipped) nitro 3:46:17 PM\n ├─ /_payload.json (4ms) nitro 3:46:17 PM\n nitro 3:46:17 PM\nErrors prerendering:\n ├─ /some-sub-path/_nuxt/builds/meta/44c8cfbf-f224-48e5-8e0b-58235722c140.json (3ms) nitro 3:46:17 PM\n │ ├── [404] Cannot find static asset /_nuxt/builds/meta/44c8cfbf-f224-48e5-8e0b-58235722c140.json\n │ └── Linked from /\n nitro 3:46:17 PM\n\n ERROR Exiting due to prerender errors. 3:46:17 PM\n\n at prerender (node_modules/nitropack/dist/core/index.mjs:2090:11) \n\n\n\n ERROR Exiting due to prerender errors. 3:46:17 PM\n```",[2978,2981,2984],{"name":2979,"color":2980},"workaround available","11376d",{"name":2982,"color":2983},"❗ p4-important","D93F0B",{"name":2985,"color":2986},"possible regression","B90A42",30367,"`nuxt generate` fails when using `app.baseURL` different than `/` since v3.15","2025-01-04T22:35:28Z","https://github.com/nuxt/nuxt/issues/30367",0.6780042,{"description":2993,"labels":2994,"number":3000,"owner":2928,"repository":2928,"state":2929,"title":3001,"updated_at":3002,"url":3003,"score":3004},"### Environment\r\n\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v20.7.0\r\n- Nuxt Version: 3.8.0\r\n- CLI Version: 3.9.1\r\n- Nitro Version: 2.6.3\r\n- Package Manager: yarn@3.6.3\r\n- Builder: -\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n\r\n\r\n### Reproduction\r\n\r\nThis is my `nuxt.config.ts`\r\n\r\n```\r\n $production: {\r\n routeRules: {\r\n //\r\n \"/**\": { isr: true }\r\n }\r\n },\r\n\r\n nitro: {\r\n preset: \"netlify-static\",\r\n prerender: {\r\n crawlLinks: true,\r\n routes: [\r\n \"/blog\",\r\n \"/robots.txt\"\r\n ]\r\n }\r\n },\r\n```\r\n\r\n### Describe the bug\r\n\r\nBuilding my application with `nuxt generate` says you can preview using `npx serve .output/static`, but the actual content is in **dist** and it correctly states that you should deploy dist.\r\n\r\n\r\n\r\n\r\n[nitro] ✔ You can preview this build using npx serve .output/static\r\n[nitro] ℹ Scanning routes for broken links... trailingSlashes: false\r\n[nitro] ✔ Looks good! No broken links found.\r\n✔ You can now deploy dist to any static hosting!\r\n │ │\r\n │ - Local: http://localhost:3000 │\r\n │ - Network: http://192.168.0.185:3000 │\r\n │ │\r\n │ Copied local address to clipboard! │\r\n │ │\r\n └───────────────────────────────────────────┘\r\n HTTP 29.10.2023 10:41:22 ::1 Returned 404 in 1 ms\r\n HTTP 29.10.2023 10:41:23 ::1 GET /favicon.ico\r\n HTTP 29.10.2023 10:41:23 ::1 Returned 404 in 3 ms\r\n HTTP 29.10.2023 10:41:53 127.0.0.1 GET /\r\n HTTP 29.10.2023 10:41:53 127.0.0.1 Returned 404 in 3 ms\r\n HTTP 29.10.2023 10:42:19 ::1 GET /\r\n HTTP 29.10.2023 10:42:19 ::1 Returned 404 in 2 ms\r\n\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2995,2996,2997],{"name":2922,"color":2923},{"name":2925,"color":2926},{"name":2998,"color":2999},"nitro","bfd4f2",24015,"`nuxt generate` says you can preview using `npx serve .output/static`, but the actual content is in **dist**","2024-06-25T17:18:37Z","https://github.com/nuxt/nuxt/issues/24015",0.6791674,{"description":3006,"labels":3007,"number":3009,"owner":2928,"repository":2928,"state":2929,"title":3010,"updated_at":3011,"url":3012,"score":3013},"Hi there, I tried the `nuxt generate` command with nested routes example https://nuxtjs.org/examples/nested-routes . I mades sure the `generate: { routes: ... } ` option correctly as mentioned here https://nuxtjs.org/api/configuration-generate#the-generate-property .\r\n\r\nBut when we try to run `python -m SimpleHTTPServer` under `dist/1/` or `dist/2/` I get missing assets. But when we run server from `dist/` folder it works correctly.\r\n\r\nIs it possible to customise this behaviour and directly run and serve from child folder `dist/1/` etc. So that if we have multiple folders under `dist` directory, we can serve them on different domain like `\u003Cuser-id>.drivem7.com`.\r\n\r\nI looked at `generator.js` file here https://github.com/nuxt/nuxt.js/blob/dev/lib/builder/generator.js . Is it possible to have custom generation process. The documentation says that we can define hooks to `nuxt generate` but don't where to define them either in `nuxt.config.js` or under `plugins` folder, by creating a new file.\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2028\">#c2028\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3008],{"name":2968,"color":2969},2324,"Nuxt generate with sub folders not serving properly when accessed from subfolder using python","2023-01-18T15:43:53Z","https://github.com/nuxt/nuxt/issues/2324",0.67958844,{"description":3015,"labels":3016,"number":3019,"owner":2928,"repository":2928,"state":2929,"title":3020,"updated_at":3021,"url":3022,"score":3023},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v16.16.0`\r\n- Nuxt Version: `3.0.0-rc.11`\r\n- Nitro Version: `0.5.4`\r\n- Package Manager: `yarn@1.22.15`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-tnyrw6?file=nuxt.config.ts\n\n### Describe the bug\n\nWhen I change nitro.output in `nuxt.config.ts`, output directory will change to `server/.output/`, even I use default value \r\n```\r\noutput: {\r\n dir: '.output',\r\n serverDir: '.output/server',\r\n publicDir: '.output/public',\r\n},\r\n```\n\n### Additional context\n\nI'm not sure this is `nitro` or `nuxt config` issue\n\n### Logs\n\n_No response_",[3017,3018],{"name":2922,"color":2923},{"name":2925,"color":2926},15012,"nuxt.config.ts nitro output error","2023-01-19T17:43:33Z","https://github.com/nuxt/nuxt/issues/15012",0.6814175,{"description":3025,"labels":3026,"number":3032,"owner":2928,"repository":2928,"state":2929,"title":3033,"updated_at":3034,"url":3035,"score":3036},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.14.0`\r\n- Nuxt Version: `3.7.1`\r\n- CLI Version: `3.7.3`\r\n- Nitro Version: `2.6.2`\r\n- Package Manager: `npm@8.19.4`\r\n- Builder: `-`\r\n- User Config: `experimental`, `generate`, `router`, `hooks`, `modules`, `css`, `vite`, `intlify`, `runtimeConfig`, `nitro`, `app`\r\n- Runtime Modules: `@intlify/nuxt3@0.2.4`, `@pinia/nuxt@0.4.11`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nI tried to reproduce but seems that a raw `v3.7.1` app works fine even with same nuxt config as my error scenarios.\n\n### Describe the bug\n\nI've two apps using nuxt `v3.6.5` and `nuxt generate` works properly. After upgrading to `v3.7.1` I'm getting this error on both apps. I tried to create a raw app with same nuxt config but it works. Seems that it can be related to this line on [`router` composable](https://github.com/nuxt/nuxt/blob/88a6d0a499cc7696bff94c02548cd9cc60f7820b/packages/nuxt/src/app/composables/router.ts#L5). I checked out on `ufo`'s repository and [this function](https://github.com/search?q=repo%3Aunjs%2Fufo%20isScriptProtocol&type=code) still exists but I didn't find it on `dist`.\r\n\r\n_error image after `nuxt generate`_\r\n\u003Cimg width=\"1506\" alt=\"Screenshot 2023-09-05 at 17 13 57\" src=\"https://github.com/nuxt/nuxt/assets/25435624/fad40c71-4dfe-45d1-98f0-fdf2cbb766a8\">\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3027,3028,3029],{"name":2922,"color":2923},{"name":2925,"color":2926},{"name":3030,"color":3031},"needs reproduction","FBCA04",23017,"[nuxt generate] does not provide an export named 'isScriptProtocol'","2023-09-12T17:41:09Z","https://github.com/nuxt/nuxt/issues/23017",0.6840349,{"description":3038,"labels":3039,"number":3046,"owner":2928,"repository":2928,"state":2929,"title":3047,"updated_at":3048,"url":3049,"score":3050},"Now that we have support for nitro 'static' builds it would be nice to enable this behaviour automatically when running `nuxi generate`.\r\n\r\n```[tasklist]\r\n### Tasks\r\n- [x] detect `netlify-static` and `vercel-static` environments automatically (upstream bug in nitro)\r\n- [x] normalise behaviour between `build` and `generate` when using a static preset (prerender configuration, crawler, etc.)\r\n```\r\n\r\nLinked issues:\r\n* https://github.com/nuxt/image/issues/638\r\n* https://github.com/nuxt/nuxt/issues/21232",[3040,3041,3042,3043],{"name":2949,"color":2950},{"name":2922,"color":2923},{"name":2998,"color":2999},{"name":3044,"color":3045},"🍰 p2-nice-to-have","0E8A16",21254,"static nitro builds when running `nuxi generate`","2023-06-29T13:55:16Z","https://github.com/nuxt/nuxt/issues/21254",0.68483037,["Reactive",3052],{},["Set"],["ShallowReactive",3055],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f9Dm-MA83JRUnmMBY7ebJVUEJfZQfn9iybS_ZR03D2fk":-1},"/nuxt/nuxt/14361"]