framework icon indicating copy to clipboard operation
framework copied to clipboard

Static site generation (SSG) title error

Open RifatMahmudno-1 opened this issue 2 years ago • 1 comments

Environment

RootDir: G:/Rifat 00:25:18 Nuxt project info: 00:25:18


  • Operating System: Windows_NT
  • Node Version: v18.12.1
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: app, postcss
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  1. Create a nuxt app
  2. In the nuxt.config.ts define a title
  3. In your pages define a title for that specific page.
  4. Run npx nuxi generate
  5. Run npm run preview
  6. You will see that that page has the title that you defined in the nuxt.config.ts instead of that page's title.

Describe the bug

I defined a default title in my nuxt.config.ts file. Then in my pages, I defined titles for each page. So, in the generated static files the title should be the title that I defined in the pages. But it's showing the default title in every page.

Additional context

No response

Logs

No response

RifatMahmudno-1 avatar Nov 17 '22 18:11 RifatMahmudno-1