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

Project adapter build settings does not consider nested paths #7

Open
vratskyi opened this issue Feb 29, 2024 · 2 comments
Open

Project adapter build settings does not consider nested paths #7

vratskyi opened this issue Feb 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vratskyi
Copy link
Owner

Now when switching to Russian language blog articles are not opened, this happens because when building the project adapter does not take into account nested paths for another locale, will be fixed in future updates.

@vratskyi vratskyi added the bug Something isn't working label Feb 29, 2024
@vratskyi vratskyi self-assigned this Feb 29, 2024
@vratskyi vratskyi changed the title Bugs that are known Project adapter build settings does not consider nested paths Feb 29, 2024
@vratskyi vratskyi pinned this issue Feb 29, 2024
@vratskyi
Copy link
Owner Author

vratskyi commented Mar 1, 2024

In general, the problem is that Cloudflare has a limit on the size of the configuration file, now I have it more than 1MB, because of this there is an error loading the project regarding paths for localizations in the blog, I added to the astro config file here this:

routes: { strategy: 'include', include: [ '/en/blog/*', '/ru/blog/*' ] }

I think this should help Cloudflare build the routes correctly, now I'm looking for a way to reduce the configuration file to less than 1 MB, if I can't solve it, I'll try other adapters.

vratskyi added a commit that referenced this issue Mar 1, 2024
vratskyi added a commit that referenced this issue Mar 1, 2024
…tched from svg to png, removed unused icons)
@vratskyi
Copy link
Owner Author

vratskyi commented Mar 1, 2024

Anyway, for all those who would like to use the template with the latest version here with these fixes I consider it the latest version: fixes
in the config for netlify you need to configure paths for dynamic generation of posts for each of the existing locales.

That is, now when building a project on any of the astro adapters (cloudflare, vercel, netlufy - I tried them all) only the posts that are in /posts/en/some-posts.mdx are generated, but it should happen for /posts/en/some-posts.mdx but it is generated /posts/en/some-posts.html this problem I have not solved as in the documentation I did not find how to solve it, maybe it's in the i18n configuration.

Thanks in advance to those who will solve this problem.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant