Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

chore: Add SEO support (#4043)

Ivan Starkovc3b130e6a440
diff --git a/apps/builder/app/routes/_ui.login._index.tsx b/apps/builder/app/routes/_ui.login._index.tsx
index 4eee7b44b0..98076cdef6 100644
--- a/apps/builder/app/routes/_ui.login._index.tsx
+++ b/apps/builder/app/routes/_ui.login._index.tsx
@@ -1,4 +1,5 @@
import {
+ type LinksFunction,
type LoaderFunctionArgs,
type TypedResponse,
json,
@@ -19,8 +20,27 @@ import { lazy } from "react";
import { preventCrossOriginCookie } from "~/services/no-cross-origin-cookie";
import { redirect } from "~/services/no-store-redirect";
+export const links: LinksFunction = () => {
+ return [
+ {
+ rel: "canonical",
+ href: "https://apps.webstudio.is/login",
+ },
+ ];
+};
+
export const meta: MetaFunction<typeof loader> = () => {
- const metas: ReturnType<MetaFunction> = [];
+ const metas: ReturnType<MetaFunction> = [
+ {
+ name: "title",
+ content: "Webstudio Login",
+ },
+ {
+ name: "description",
+ content: "Log in to Webstudio to start creating websites.",
+ },
+ { name: "robots", content: "index, follow" },
+ ];
metas.push({ title: "Webstudio Login" });
diff --git a/apps/builder/public/robots.txt b/apps/builder/public/robots.txt
new file mode 100644
index 0000000000..85b70aaa96
--- /dev/null
+++ b/apps/builder/public/robots.txt
@@ -0,0 +1,4 @@
+User-agent: *
+Allow: /
+Allow: /login
+Disallow: /*