We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using remix-flat-routes with Remix+Vite as well as nasa-gcn/remix-seo.
The generated sitemap has extra slashes after the domain name, e.g. https://abc.com//xyz.
https://abc.com//xyz
My routes folder looks something like this:
routes
routes _auth+ login.jsx profile.jsx _marketing+ privacy.mdx terms.mdx _blog+ hello route.jsx test.mdx
Only /login and /profile are correctly generated in the sitemap. The other ones will have an extra slash.
My vite.config.ts looks like this:
vite.config.ts
remix({ ignoredRouteFiles: ['**/*'], routes: async defineRoutes => { return flatRoutes('routes', defineRoutes) } }),
My sitemap[.]xml.js looks like this:
sitemap[.]xml.js
import { generateSitemap } from '@nasa-gcn/remix-seo' import { siteConfig } from '../../utils/site-config' export async function loader ({ request }) { //@ts-ignore - This may fail during docker build typecheck if the app isn't build yet let build = await (import.meta.env.DEV ? import('../../build/server/index.js') : import( /* @vite-ignore */ import.meta.resolve('../../build/server/index.js') )) return generateSitemap(request, build.routes, { siteUrl: siteConfig.url, headers: { 'Cache-Control': `public, max-age=${60 * 5}` } }) }
@github.com/nasa-gcn/remix-seo/issues/7
The text was updated successfully, but these errors were encountered:
See nasa-gcn/remix-seo#8.
Sorry, something went wrong.
Sorry for not seeing this sooner. I'll take a look.
I believe this is an issue with remix-seo.
remix-seo
nasa-gcn/remix-seo#7 (comment)
No branches or pull requests
I am using remix-flat-routes with Remix+Vite as well as nasa-gcn/remix-seo.
The generated sitemap has extra slashes after the domain name, e.g.
https://abc.com//xyz
.My
routes
folder looks something like this:Only /login and /profile are correctly generated in the sitemap. The other ones will have an extra slash.
My
vite.config.ts
looks like this:My
sitemap[.]xml.js
looks like this:@github.com/nasa-gcn/remix-seo/issues/7
The text was updated successfully, but these errors were encountered: