diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 28813de..0405e86 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -2,5 +2,6 @@ import { defineConfig } from "astro/config"; export default defineConfig({ - site: "https://squill.tree.ht", + site: "https://mckayla.dev", + base: "/squill", }); diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index 611d443..8c0fbb3 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -1,4 +1,5 @@ --- +const base = import.meta.env.BASE_URL.replace(/\/$/, ""); const before = `select w.id, w.name, count(*) as build_count from workspaces w join workspace_builds wb on wb.workspace_id = w.id where w.deleted = false and w.last_used_at > NOW() - interval '30 days' group by w.id, w.name order by build_count desc limit 20; CREATE FUNCTION notify_workspace_change() RETURNS trigger SECURITY DEFINER AS $$ BEGIN PERFORM pg_notify('workspaces', NEW.id::text); RETURN NEW; END; $$ LANGUAGE plpgsql;`; @@ -32,7 +33,7 @@ $$;`; name="description" content="A fast, trustworthy SQL formatter for Postgres and SQLite, with embedded-SQL support for Rust, Go, Python, JavaScript/TypeScript, and Gleam." /> - +