shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.18k stars 1.23k forks source link

Some routes do not work in production #2318

Closed sanchezfdezjavier closed 10 months ago

sanchezfdezjavier commented 11 months ago

Hello, I'm using Nextra alongside the Docs theme for hosting my docs within a Nexjs app in a monorepo setup. I have all the Nextra content under pages/docs., and Some routes don't show up in production (deploying in Vercel), however, they do show up properly in localhost.

I get the default 404 not found page.

Any help with this issue? This is the theme.config.jsx

import Image from 'next/image'

// Docs theme config options: https://nextra.site/docs/docs-theme/theme-configuration
export default {
  head: (
    <>
    ...some favicons....
    </>
  ),
  logo: (
    <>
      <Image
        src={'/company-logo.png'}
        width={150}
        height={150}
        alt="Company logo"
        className="dark:invert"
      />
    </>
  ),
  project: {},
  chat: {
    link: 'https://discord.gg/XXXXXXXX',
    icon: (
      <Image
        src="/discord.png"
        alt="Discord"
        className="dark:invert"
        width={30}
        height={30}
      />
    ),
  },
  footer: {
    company footer,
  },
  docsRepositoryBase: 'https://github.com/stackai/stackweb',
  useNextSeoProps() {
    return {
      titleTemplate: '%s – company',
    }
  },
}
dimaMachina commented 11 months ago

https://github.com/shuding/nextra/issues/1564#issuecomment-1447419595