Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example static export pages have no title #8094

Closed
ratiotile opened this issue Jul 24, 2019 · 2 comments
Closed

Example static export pages have no title #8094

ratiotile opened this issue Jul 24, 2019 · 2 comments
Assignees
Milestone

Comments

@ratiotile
Copy link

Examples bug report

Example name

E1-static-export

Describe the bug

I was following the static export tutorial. On the step to generate the individual post pages, after modifying the next.config.js, when running npm run export the generated static .html files all have empty h1 elements. When loading the index page and using client-based navigation, the titles appear, but only the post body is shown on reload of the post page.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. git clone https://github.com/zeit/next-learn-demo.git
  2. npm install
  3. Follow the Export into a Static HTML App completing the Exporting Other Pages step
  4. npm run build
  5. npm run export
  6. cd out
  7. serve -p 8080

Expected behavior

The titles specified in the next.config.js should have been baked into the static .html files.

System information

  • OS: Windows 7
  • Version of Next.js: 9.0.2
@ratiotile
Copy link
Author

Working in 8.1.0
Still broken in 9.0.3-canary.3

@timneutkens timneutkens added this to the 9.0.3 milestone Jul 26, 2019
@Timer Timer modified the milestones: 9.0.3, 9.0.4 Jul 30, 2019
@lfades lfades closed this as completed Jul 31, 2019
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants