feat: add SEO fundamentals (robots.txt, sitemap, OG tags, JSON-LD, canonical) and 404 page
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Failing after 10m2s
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Failing after 10m2s
This commit is contained in:
parent
db0d4eeed2
commit
abf66d8017
5 changed files with 98 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ app.use((req, res) => {
|
|||
if (req.path.startsWith("/v1/") || req.path.startsWith("/api")) {
|
||||
res.status(404).json({ error: "Not Found: " + req.method + " " + req.path });
|
||||
} else {
|
||||
res.status(404).sendFile(path.join(__dirname, "../public/index.html"));
|
||||
res.status(404).sendFile(path.join(__dirname, "../public/404.html"));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue