question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Working on frontend only

See original GitHub issue

I’m trying to implement the basic example inside an app that already use _app.js and _document.js

This is my test.js page:

import React from 'react';
import { NextSeo } from 'next-seo';

export default () => (
  <>
    <NextSeo
      title="Simple Usage Example"
      description="A short description goes here."
    />
    <p>Simple Usage</p>
  </>
);

I can see it working only client-side, if I view page source the title and description are not set. If I remove _app.js and _document.js I can see the title and description correctly in the page source.

What am I missing?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
carlosHerzcommented, Dec 31, 2020

I am still having this issue when i run next build && next export my meta datas are not pre-rendered and instead are added on client side 😕

2reactions
garmeehcommented, Feb 21, 2020

@talentlessguy

Can confirm, when next export or next build it doesn’t generate any meta tags in both cases

Please see the CodeSandbox here. This works as expected with next build and next export.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it okay for a web developer to know only front end? - Quora
Front-end development requires writing code which needs to work on multiple different devices varied by size, performance, capabilities and human interaction.
Read more >
Blocks not working on frontend only - WordPress.org
No plugins, and tried with Twenty Twenty, and Twenty Nineteen (and my own theme). Build.js is not being called on the frontend, I...
Read more >
Hired as a back-end developer, only given front end work?
I was hired at a company to do back-end work, but I've only been given front-end work? How do you deal with this?...
Read more >
How to build a frontend, when the backend is not ready
Building a frontend is not an easy job, sometimes the frontend and the backend team should work in parallel, with this guide they...
Read more >
How to work as a solo frontend developer - DEV Community ‍ ‍
Working in a team is great. You can progress really fast and learn a lot from your colleagues. Having another set of eyes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found