wszymanski
wszymanski
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
thanks a lot!
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
this was the config bit that was missing from nuxt.config
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
🤦
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
it is gone now from config
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
I was just trying to get hreflang to work, this was one of the suggestions from... mr GPT 😉
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
hacky, but works and SEO checks pass
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
head.value = {
...head.value,
link: head.value.link.map((link) => ({
...link,
...(link.href.startsWith('/') && {
href: `https://www.example.com${link.href}`,
}),
})),
}
head.value = {
...head.value,
link: head.value.link.map((link) => ({
...link,
...(link.href.startsWith('/') && {
href: `https://www.example.com${link.href}`,
}),
})),
}
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
I got it to work in useHead() and manually adding domain to href
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
Thanks for reply! I have a single domain, locales are just subpath.
15 replies
NNuxt
Created by wszymanski on 9/10/2024 in #❓・help
How to make sure hreflangs contain domain?
is there an obvious config missing that makes hreflang relative instead of absolute?
15 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
ohhh thank you! 🙌
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
is ther a way to skip this page and have a link on the 1st level sitemap? I wonder if that double-nesting can have seo consequence
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
morning! after I got all to work, I have a question - I need to provide a static link to another sitemap XML ( I am running 2 apps under the same domain ), if I do it via this config:
export default {
autoI18n: false,
sitemaps: {
default: {
dynamicUrlsApiEndpoint: '/sitemap-default',
},
shop: {
urls() {
return ['shop/sitemapindex.xml']
},
},
...
},
}
export default {
autoI18n: false,
sitemaps: {
default: {
dynamicUrlsApiEndpoint: '/sitemap-default',
},
shop: {
urls() {
return ['shop/sitemapindex.xml']
},
},
...
},
}
it gives me a "shop" sub-sitemap with just 1 link inside, obviously
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
OK, here is what helped: - delete root node_modules ( not symlinked ) - delete lock file - pnpm i now it started working, thanks for being a "rubber duck" ! 😉
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
cleared node_modules, run pnpm prune, fresh pnpm install - still the same
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
ran gaian, now have 3.13 version... but a new Error
[3:22:54 PM] ERROR [worker reload] [worker init] The requested module 'file:///.../node_modules/.pnpm/[email protected]/node_modules/ufo/dist/index.mjs' does not provide an export named 'joinRelativeURL'

import { parseURL, withoutBase, joinURL, getQuery, withQuery, withTrailingSlash, hasProtocol, withHttps, withoutProtocol, withLeadingSlash, withoutTrailingSlash, withBase, joinRelativeURL, parsePath, parseQuery, stringifyQuery, encodePath, stringifyParsedURL, withoutLeadingSlash } from '.../node_modules/.pnpm/[email protected]/node_modules/ufo/dist/index.mjs';
^^^^^^^^^^^^^^^
[3:22:54 PM] ERROR [worker reload] [worker init] The requested module 'file:///.../node_modules/.pnpm/[email protected]/node_modules/ufo/dist/index.mjs' does not provide an export named 'joinRelativeURL'

import { parseURL, withoutBase, joinURL, getQuery, withQuery, withTrailingSlash, hasProtocol, withHttps, withoutProtocol, withLeadingSlash, withoutTrailingSlash, withBase, joinRelativeURL, parsePath, parseQuery, stringifyQuery, encodePath, stringifyParsedURL, withoutLeadingSlash } from '.../node_modules/.pnpm/[email protected]/node_modules/ufo/dist/index.mjs';
^^^^^^^^^^^^^^^
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
seems like it only upgraded to 3.8 ?
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
I did a force update, now I get this while running dev mode:
WARN Module @nuxtjs/sitemap is disabled due to incompatibility issues: 3:16:57 PM
- [nuxt] Nuxt version >=3.9.0 is required but currently using 3.8.0
WARN Module @nuxtjs/sitemap is disabled due to incompatibility issues: 3:16:57 PM
- [nuxt] Nuxt version >=3.9.0 is required but currently using 3.8.0
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
Thanks, will try later
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
thanks for quick reply! yeah I tried but that throws whole bunch of other errors
[nuxt] [request error] [unhandled] [500] Cannot find module '.../.output/server/node_modules/vue/server-renderer/index.mjs' imported from .../.output/server/chunks/handlers/renderer.mjs
[nuxt] [request error] [unhandled] [500] Cannot find module '.../.output/server/node_modules/vue/server-renderer/index.mjs' imported from .../.output/server/chunks/handlers/renderer.mjs
20 replies