Nextjs google site verification with next-intl #1410
Unanswered
aboutjquery
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You might have an easier time by using the HTML file upload method. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Nextjs + next-intl. I now need google site verification. I chose to add meta, but it was unsuccessful because
mydomain.com
will automatically jump to/en/ or /zh/
route depending on the language becauseapp/page.tsx
has below code:I tried adding below code to
app/layout.tsx
And then clicked the Google search console verification button, but it was unsuccessful. I tried adding meta to
app/[locale]/layout.tsx
and it succeeded, but it can only be verified when the URL is the Language. , but I want to verify the URL without language routing, am I wrong? I don’t need this? I just need to add meta to the two locales respectively?Beta Was this translation helpful? Give feedback.
All reactions