-
Notifications
You must be signed in to change notification settings - Fork 4
fix(seo): JSON-LD structured data and sitemap hostname #423
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
base: fix/performance
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ export default defineConfig({ | |
| react(), | ||
| tsconfigPaths(), | ||
| Sitemap({ | ||
| hostname: 'https://dappbooster.dev', | ||
| hostname: process.env.PUBLIC_APP_URL || 'https://demo.dappbooster.dev', | ||
| }), | ||
|
Comment on lines
16
to
18
|
||
| ], | ||
| build: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JSON-LD
urlvalues are hardcoded tobootnode.dev/demo.dappbooster.dev. If this app is deployed on a different hostname (now supported for the sitemap viaPUBLIC_APP_URL), the structured data will advertise the wrong canonical URL. Consider deriving these URLs from the same configured base URL at build time (or otherwise ensuring they stay in sync with the deployment hostname).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not changing. JSON-LD
@idandurlvalues must be absolute IRIs — a relative/is invalid structured data. For a project template the static fallback URL is acceptable; deriving it fromPUBLIC_APP_URLat build time is a future enhancement.