Skip to content

Commit d0c83c8

Browse files
fix(seo): use || instead of ?? for sitemap hostname fallback
?? only falls back on null/undefined; an empty string (the default in .env.example) would pass through as the hostname and produce an invalid sitemap. || also handles empty strings.
1 parent a37445c commit d0c83c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig({
1414
react(),
1515
tsconfigPaths(),
1616
Sitemap({
17-
hostname: process.env.PUBLIC_APP_URL ?? 'https://demo.dappbooster.dev',
17+
hostname: process.env.PUBLIC_APP_URL || 'https://demo.dappbooster.dev',
1818
}),
1919
],
2020
build: {

0 commit comments

Comments
 (0)