Skip to content

Commit

Permalink
updated to match requirements in sopfy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kobykotiv committed Nov 9, 2024
1 parent a628c5d commit 4f51efd
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 15 deletions.
25 changes: 25 additions & 0 deletions app/routes/sitemap.xml.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { MetadataRoute } from 'remix';
import { XMLParser } from 'fast-xml-parser';

export function metadata(): MetadataRoute {
return {
headers: {
'Content-Type': 'application/xml',
},
};
}

export default async function Sitemap() {
const xmlString = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://your-shopify-store.com/</loc>
</url>
</urlset>`;

return new Response(xmlString, {
headers: {
'Content-Type': 'application/xml',
},
});
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"embla-carousel": "8.3.1",
"embla-carousel-autoplay": "8.3.1",
"embla-carousel-react": "8.3.1",
"fast-xml-parser": "^4.5.0",
"framer-motion": "^11.11.11",
"graphql": "^16.9.0",
"graphql-tag": "^2.12.6",
Expand All @@ -59,6 +60,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-use": "^17.5.1",
"remix": "^2.14.0",
"sanity": "^3.63.0",
"tailwind-merge": "^2.5.4",
"tiny-invariant": "^1.3.3",
Expand Down
55 changes: 40 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f51efd

Please sign in to comment.