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

Change BaseURL when using different domains #3053

Open
2 of 4 tasks
WooHoo-Wu opened this issue Aug 6, 2024 · 2 comments
Open
2 of 4 tasks

Change BaseURL when using different domains #3053

WooHoo-Wu opened this issue Aug 6, 2024 · 2 comments

Comments

@WooHoo-Wu
Copy link

Describe the feature

I am not sure if this is already possible, but I can not seem to figure it out.
For my site I am using differentDomains: true
For SEO purposes, I would like the baseURL to change whenever I switch local (or domain) which it does not seem to be doing right now.
I am using the SEO module and for that to work properly I need to set up the site config.

The site link will be automatically set to the baseURL of the i18n module.

I am also not sure if this is i18n module or seo module issue.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@WooHoo-Wu
Copy link
Author

image
image
image
I set differentDomains to true, but every time I switch domains, baseUrl remains fixed.

@WooHoo-Wu
Copy link
Author

I tried to use a method to modify the BaseUrl, but it gave an error: Cannot start nuxt: input.match is not a function

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

No branches or pull requests

1 participant