\u003Cmeta data-n-head=\"true\" name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\u003Cmeta data-n-head=\"true\" data-hid=\"description\" name=\"description\" content=\"Single Page Application made with Nuxt.js\"/>\u003Ctitle data-n-head=\"true\">SPA mode with Nuxt.js\u003C/title>\u003Clink data-n-head=\"true\" rel=\"icon\" type=\"image/x-icon\" href=\"/favicon.ico\"/>\u003Clink rel=\"preload\" href=\"/_nuxt/manifest.d0744574585ac1dee85d.js\" as=\"script\" />\u003Clink rel=\"preload\" href=\"/_nuxt/vendor.e5846097588ab215ec84.js\" as=\"script\" />\u003Clink rel=\"preload\" href=\"/_nuxt/app.ea8601e0953e1b274d4d.js\" as=\"script\" />\u003Clink rel=\"prefetch\" href=\"/_nuxt/pages/about.4118266901f28cbb833c.js\" />\u003Clink rel=\"prefetch\" href=\"/_nuxt/pages/index.ec5c074253357cf54927.js\" />\u003Clink rel=\"prefetch\" href=\"/_nuxt/layouts/default.860485f7694926d31a51.js\" />\n \u003C/head>\n \u003Cbody data-n-head=\"\">\n \u003Cdiv id=\"__nuxt\">\u003Cstyle>body, html, #__nuxt { background-color: white; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0;}.spinner { width: 40px; height: 40px; margin: 100px auto; background-color: #dbe1ec; border-radius: 100%; -webkit-animation: sk-scaleout 1.0s infinite ease-in-out; animation: sk-scaleout 1.0s infinite ease-in-out;}@-webkit-keyframes sk-scaleout { 0% { -webkit-transform: scale(0) } 100% { -webkit-transform: scale(1.0); opacity: 0; }}@keyframes sk-scaleout { 0% { -webkit-transform: scale(0); transform: scale(0); } 100% { -webkit-transform: scale(1.0); transform: scale(1.0); opacity: 0; }}\u003C/style>\u003Cdiv class=\"spinner\"> \u003Cdiv class=\"double-bounce1\">\u003C/div> \u003Cdiv class=\"double-bounce2\">\u003C/div>\u003C/div>\u003C!-- http://tobiasahlin.com/spinkit -->\u003C/div>\n \u003Cscript type=\"text/javascript\" src=\"/_nuxt/manifest.d0744574585ac1dee85d.js\">\u003C/script>\u003Cscript type=\"text/javascript\" src=\"/_nuxt/vendor.e5846097588ab215ec84.js\">\u003C/script>\u003Cscript type=\"text/javascript\" src=\"/_nuxt/app.ea8601e0953e1b274d4d.js\">\u003C/script>\u003C/body>\n\u003C/html>\n```\n\n### What is actually happening?\n\nIf I edit `nuxt.config.js` to include a different build directory (because I want the files to be included in the static directory of my server) and add:\n\n```\nbuildDir: '../app/static/spa'\n```\n\nI get an incorrectly rendered `index.spa.html` file:\n\n```\n\u003C!DOCTYPE html>\n\u003Chtml {{ HTML_ATTRS }}>\n \u003Chead>\n {{ HEAD }}\n \u003C/head>\n \u003Cbody {{ BODY_ATTRS }}>\n {{ APP }}\n \u003Cscript type=\"text/javascript\" src=\"/_nuxt/manifest.b952793a76434c73795b.js\">\u003C/script>\u003Cscript type=\"text/javascript\" src=\"/_nuxt/vendor.e5846097588ab215ec84.js\">\u003C/script>\u003Cscript type=\"text/javascript\" src=\"/_nuxt/app.4305fc29686149ef8b58.js\">\u003C/script>\u003C/body>\n\u003C/html>\n```\n\n### Additional comments?\n\nI have also documented the whole process in a [minimal working example](https://github.com/stratosgear/flask-vuejs-template) repo.\n\nAs of now my only solution it to use a bash script to manually copy the generated files in their proper location (right after `npm run build` and **without** using `buildDir`).\n\nSo either, I'm not configuring the `nuxt.config.js` right, or it is indeed a bug. Any ideas?\n\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6892\">#c6892\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2898,2899,2900],{"name":2885,"color":2886},{"name":2866,"color":2867},{"name":2901,"color":2902},"2.x","d4c5f9",3217,"Problems with the generation of build files when using 'buildDir'","2023-01-22T15:30:04Z","https://github.com/nuxt/nuxt/issues/3217",0.64486295,{"description":2909,"labels":2910,"number":2913,"owner":2875,"repository":2875,"state":2876,"title":2914,"updated_at":2915,"url":2916,"score":2917},"node: v14.16.1\r\nnuxt: 2.15.3\r\n\r\nHello!. I am using Nuxtjs to create a multi-page site (static mod). After generation, \"title\" and \"description\" do not works as expected. Title and description takes from config, not from `head()` on the page.\r\n\r\n**nuxt.config.js**\r\n\r\n```js\r\nssr: false,\r\ntarget: 'static',\r\nhead: {\r\n title: 'title of project',\r\n htmlAttrs: {\r\n lang: 'en'\r\n },\r\n meta: [\r\n { charset: 'utf-8' },\r\n { name: 'viewport', content: 'width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1' },\r\n { hid: 'description', name: 'description', content: 'some description' }\r\n ],\r\n link: [\r\n { rel: 'icon', type: 'image/x-icon', href: '/favicon.svg' },\r\n },\r\ngenerate: {\r\n subFolders: false,\r\n routes: ['/about', ]\r\n },\r\n ...\r\n```\r\n**pages/about/index.vue**\r\n\r\n```js\r\nexport default {\r\n head() {\r\n return {\r\n title: 'About - 2222',\r\n meta: [\r\n {\r\n hid: 'description',\r\n name: 'description',\r\n content: '11111111111111'\r\n }\r\n ]\r\n }\r\n },\r\n }\r\n```\r\n\r\nLogs after: **nuxt generate**\r\n\r\n```\r\ni Generating output directory: dist/ 19:06:50 \r\ni Generating pages 19:06:50 \r\n√ Generated route \"/about\"\r\n```\r\n\r\n**about.html:**\r\n\r\n```html\r\n\u003Chtml lang=\"en\" data-n-head=\"%7B%22lang%22:%7B%221%22:%22en%22%7D%7D\">\r\n \u003Chead>\r\n \u003Ctitle>title of project\u003C/title>\u003Cmeta data-n-head=\"1\" charset=\"utf-8\">\u003Cmeta data-n-head=\"1\" name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1\">\u003Cmeta data-n-head=\"1\" data-hid=\"description\" name=\"description\" content=\"some description\">\r\n \u003C/head>\r\n \u003Cbody>\u003C/body>\r\n\u003C/html>\r\n```\r\n\r\nAfter generation deploed code to Github pages. Also tried to add `fallback: '404.html'`, also not works. Page is loaded with static data, then dynamically updates **title** and **description**. This is not suitable for a search engine.\r\n",[2911,2912],{"name":2866,"color":2867},{"name":2901,"color":2902},9390,"Title and description are not static, they are updated only after the page is loaded","2023-01-22T15:44:58Z","https://github.com/nuxt/nuxt/issues/9390",0.6451008,{"description":2919,"labels":2920,"number":2926,"owner":2875,"repository":2875,"state":2876,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v20.3.1`\r\n- Nuxt Version: `3.7.3`\r\n- CLI Version: `3.9.0`\r\n- Nitro Version: `2.6.3`\r\n- Package Manager: `npm@9.6.7`\r\n- Builder: `-`\r\n- User Config: `experimental`, `app`, `runtimeConfig`, `modules`, `content`, `site`, `i18n`\r\n- Runtime Modules: `@nuxt/content@2.8.2`, `@nuxtjs/i18n@8.0.0-rc.4-28252997.568c274`, `@nuxt/image@1.0.0-rc.2`, `@nuxtjs/tailwindcss@6.8.0`, `nuxt-simple-sitemap@3.3.4`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nN/A\n\n### Describe the bug\n\nWhen running `npm run generate` locally all the pages in my `/content` folder are being generated. However, when deploying to render.com and having it run the same command to generate the static content, all the dynamic pages are skipped over. This results in 404 errors when trying to navigate to those pages. \r\n\r\nThe dynamic pages are all being linked to from a blog page overview `/blog` where each entry has a specific link e.g. `/blog/example`. The blog overview page is rendered correctly since this is not based on a markdown file but rather a `.vue` file. \r\n\r\nMy content folder looks fairly standard:\r\n\r\n- blog\r\n - NL\r\n - example\r\n - EN\r\n - example \r\n\r\nThis setup has always worked, only after upgrading to Nuxt/Content `2.8.2` from `2.6.0` and Nuxt itself from `3.4.3` to `3.7.3` it started failing on render.com. Reverting back does solve this issue but isn't ideal ofcourse.\r\n\r\nI've attached the build logs from a local sucessful build and an incomplete build on render.com\r\n\r\nLocally: https://pastebin.com/fs6kXcV2\r\nrender.com: https://pastebin.com/g5yvS0PS\r\n\r\nThanks!\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2921,2922,2923],{"name":2888,"color":2889},{"name":2866,"color":2867},{"name":2924,"color":2925},"needs reproduction","FBCA04",23356,"Nuxt generate no longer generating dynamic Nuxt/Content pages when deploying","2023-09-22T13:24:56Z","https://github.com/nuxt/nuxt/issues/23356",0.648069,{"description":2932,"labels":2933,"number":2937,"owner":2875,"repository":2875,"state":2876,"title":2938,"updated_at":2939,"url":2940,"score":2941},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v19.4.0`\r\n- Nuxt Version: `2.15.8`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@9.2.0`\r\n- Builder: `webpack`\r\n- User Config: `nitro`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nTo reproduce my setup just create the nuxt app:\r\n`npx nuxi init \u003Cproject-name>`\r\nInstall the dependencies:\r\n`npm i`\r\nCreate the `pages/index.vue` file:\r\n```html\r\n\u003Cscript setup lang=\"ts\">\r\n const counter = ref(0)\r\n const increment = () => {\r\n counter.value = counter.value + 1\r\n }\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Ch1>Hello, world\u003C/h1>\r\n \u003Cbutton @click=\"() => increment()\">Click me! {{ counter }}\u003C/button>\r\n\u003C/template>\r\n```\r\nUpdate the contents of `app.vue`:\r\n```html\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CNuxtPage />\r\n \u003C/div>\r\n\u003C/template>\r\n```\r\nAnd the run:\r\n`npx nuxi generate`\n\n### Describe the bug\n\nI want to get a static HTML output for my project (so that i spin up nginx and host the app with it) with the following structure (for example):\r\n-- /\r\n-- /nuxt\r\n---- *whatever js files nuxt needs*\r\n-- /css\r\n---- style.css\r\n-- index.html\r\n\r\nBut when I run `npx nuxi generate` (The official [Nuxt docs](https://nuxt.com/docs/getting-started/deployment#crawl-based-pre-rendering) state that this is the way to get static HTML) I end up with this folder structure:\r\n\u003Cimg width=\"1351\" alt=\"image\" src=\"https://user-images.githubusercontent.com/21990466/212471044-10722443-dc2d-4fd9-88bc-b22f32597ee7.png\">\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2934,2935,2936],{"name":2888,"color":2889},{"name":2866,"color":2867},{"name":2924,"color":2925},12415,"Static HTML is not generated","2023-01-21T09:54:16Z","https://github.com/nuxt/nuxt/issues/12415",0.64898497,{"labels":2943,"number":2946,"owner":2875,"repository":2875,"state":2876,"title":2947,"updated_at":2948,"url":2949,"score":2950},[2944,2945],{"name":2866,"color":2867},{"name":2901,"color":2902},8552,"Full static doesn't use generated html on refresh","2023-01-22T15:38:24Z","https://github.com/nuxt/nuxt/issues/8552",0.6516101,{"labels":2952,"number":2955,"owner":2875,"repository":2875,"state":2876,"title":2956,"updated_at":2957,"url":2958,"score":2959},[2953,2954],{"name":2866,"color":2867},{"name":2901,"color":2902},9547,"Nuxt not generating static content on yarn generate","2023-01-22T15:44:59Z","https://github.com/nuxt/nuxt/issues/9547",0.6520208,{"labels":2961,"number":2964,"owner":2875,"repository":2875,"state":2876,"title":2965,"updated_at":2966,"url":2967,"score":2968},[2962,2963],{"name":2888,"color":2889},{"name":2866,"color":2867},12377,"Static HTML generated with `npx nuxi generate` not being used when serving app","2023-01-19T18:19:57Z","https://github.com/nuxt/nuxt/issues/12377",0.6528553,{"labels":2970,"number":2974,"owner":2875,"repository":2875,"state":2876,"title":2975,"updated_at":2976,"url":2977,"score":2978},[2971,2972,2973],{"name":2866,"color":2867},{"name":2901,"color":2902},{"name":2924,"color":2925},9765,"npm run generate don't create a full stati site but only 200.html","2023-01-22T15:45:05Z","https://github.com/nuxt/nuxt/issues/9765",0.652904,["Reactive",2980],{},["Set"],["ShallowReactive",2983],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkk5o8MaFSC1Rw5cNqkl1YZGnR3XHWNQ-S0hbaqcs_AU":-1},"/nuxt/nuxt/8471"]