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

Error 404 : Unable to have any routes working. #71

Open
Jeremboo opened this issue Nov 30, 2023 · 2 comments
Open

Error 404 : Unable to have any routes working. #71

Jeremboo opened this issue Nov 30, 2023 · 2 comments
Assignees

Comments

@Jeremboo
Copy link

Jeremboo commented Nov 30, 2023

Describe the bug
I'm working on my Astro boilerplate and would like to integrate your package for i18n.
After following the README.md I still not been able to make any routes working. All return 404. Althought astroI18n.pages & astroI18n.locales return the desired paths and languages. So my astro-i18n.config.mjs seems to be read and pages understood.

I also tried to copy/paste the config directly into the middleware without success.
Like : const astroI18n = useAstroI18n({...});

I'm on Apple OS M1 Pro.
I'm using astro ^3.5.4 & astro-i18n ^2.1.18.

To Reproduce
Steps to reproduce the behavior:

  1. Download https://github.com/Jeremboo/astro-boilerplate/tree/refactor-use-astro-i18n
  2. Install npm i and start npm run dev
  3. Click on 'Go to About.' or 'fr'.
  4. 404 returned

Expected behavior
Be capable to navigate through my astro pages src/pages/index.astro & src/pages/about.astro.

Mandatory reproduction repository
https://github.com/Jeremboo/astro-boilerplate/tree/refactor-use-astro-i18n

@quentin-decre
Copy link

Same issue here. @Jeremboo, have you been able to find a solution ?

@Jeremboo
Copy link
Author

Jeremboo commented Jan 9, 2024

No sorry. Hoping @Alexandre-Fernandez can help on that since it may be an issue with the repo.

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

3 participants