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

Is there any way to ignore specific page being generated? #181

Open
cotton123236 opened this issue Oct 12, 2023 · 0 comments
Open

Is there any way to ignore specific page being generated? #181

cotton123236 opened this issue Oct 12, 2023 · 0 comments

Comments

@cotton123236
Copy link

Thanks for this great astro Integration!
I'm using MDX to build a documentation site. I added locale folders in the content folder and use dynamic page [...slug].astro to get those MDX files.
When I run npx astro-i18next generate, it will generate a [...slug].astro in each locale folder in pages, but I don't need it actually.

Currently, I set [...slug] as 'index' in astro-i18next.config.ts, because I already got a index.astro in pages folder so it won't generate again.

export default {
  // ...
  routes: {
    twfr {
      '[...slug]': 'index'
    }
  }
}

But it seems not a great solution for my situation, so I was wondering is there any way to ignore [...slug].astro being generated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant