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

Control how wp-content url's to WordPress are handled #115

Open
vernaillen opened this issue May 26, 2024 · 0 comments
Open

Control how wp-content url's to WordPress are handled #115

vernaillen opened this issue May 26, 2024 · 0 comments

Comments

@vernaillen
Copy link
Collaborator

vernaillen commented May 26, 2024

When rendering WordPress data, it can contain links to media and files uploaded in WordPress.

First of all check https://faustjs.org/reference/wordpress-plugin-settings#using-the-wordpress-domain-for-media-urls-in-post-content

  • Provide configuration, so user can control whether to
    • keep absolute url's pointing to the WordPress instance
    • create relative url's, so they can be processed in Nuxt, for example to optimize images with a Nuxt Image provider
  • when Nuxt handles url's:
    • automatically add a routeRule to proxy /wp-content/** to https//${wordpressUrl}/wp-content/**
    • provide composables to make sure we always handle the url correctly. e.g. useWPMedia, useFeaturedImage, etc
@vernaillen vernaillen changed the title Proxy wp-content url's to WordPress Control how wp-content url's to WordPress are handled May 26, 2024
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

1 participant