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

i need use english in domain.com/x. other language use domain in domain.com/[language]/x, how to setting? #1756

Closed
3 tasks done
xucongyong opened this issue Mar 2, 2025 · 2 comments
Labels
bug Something isn't working unconfirmed Needs triage.

Comments

@xucongyong
Copy link

Description

i need use english in domain.com/x. other language use domain in domain.com/[language]/x, how to setting?

Verifications

Mandatory reproduction URL

App Router

Reproduction description

not

Expected behaviour

not

@xucongyong xucongyong added bug Something isn't working unconfirmed Needs triage. labels Mar 2, 2025
@amannn
Copy link
Owner

amannn commented Mar 3, 2025

https://next-intl.dev/docs/routing#locale-prefix-as-needed

@amannn amannn closed this as completed Mar 3, 2025
@xucongyong
Copy link
Author

@amannn
https://www.xxx.com/test not working。
https://www.xxx.com/zh/test is working。

error:
404This page could not be found.

routing.ts:

export const routing = defineRouting({
  // ...
  localePrefix: 'as-needed'
});

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

No branches or pull requests

2 participants