shuding / nextra

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

next build not updating content in `out` folder #2960

Open resting opened 2 months ago

resting commented 2 months ago

Not sure if it's a next or nextra thing, but when I do bun run build, the built content doesn't contain the new content.

I have to remove .next folder before it picks up the new content.

Below is the next.config.js that I have.

const withNextra = require('nextra')({
  theme: 'nextra-theme-docs',
  themeConfig: './theme.config.tsx',
})

const nextConfig = {
  output: 'export',
  images: {
    unoptimized: true
  }
}

module.exports = withNextra(nextConfig)

And package.json

{
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "next": "^14.2.4",
    "nextra": "^2.13.4",
    "nextra-theme-docs": "^2.13.4",
    "react": "^18.3.1",
    "react-dom": "^18.3.1"
  }
}

It will produce an out folder but the content is not the latest.

arno-fukuda commented 2 months ago

https://github.com/orgs/vercel/discussions/2079

Few workarounds mentioned here, unless you refer to a local build?

resting commented 2 months ago

https://github.com/orgs/vercel/discussions/2079

Few workarounds mentioned here, unless you refer to a local build?

Thanks. Yes, I'm not using vercel to host. Am building and moving the 'out' folder with azure cicd pipeline.

I think we can take as local build as well.