diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..eaa4642
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,91 @@
+# Celerity Docs
+
+The Celerity documentation site at celerityframework.io: a Next.js and Fumadocs site, exported
+statically and deployed to GitHub Pages. It documents the Celerity framework and its resource
+types, the CLI, the runtimes and the SDKs, and publishes the handler manifest schema.
+
+## Workspace
+
+This repo is one of NewStack's. NewStack's maintainers develop it alongside the others in a
+shared workspace, using the NewStack Claude Code plugin for how work is planned, reviewed,
+committed and coordinated across repos. The plugin isn't public, and nothing here depends on it:
+this file and the repo's own docs cover what a contribution needs.
+
+## Layout
+
+| Path | Holds |
+|---|---|
+| `content/docs/` | The docs, in MDX, one folder per section (`framework`, `cli`, the runtimes, `go-sdk`), ordered by `meta.json`. `index.mdx` is the `/docs` landing page linking each section |
+| `public/schemas/handler-manifest.v1.schema.json` | A copy of the Node SDK's handler manifest schema, served at the URL its `$id` names |
+| `src/` | The site: `app/` (pages, plus the `static.json` search export and `llms` routes), `components/`, `lib/`, `data/` (release data) |
+| `grammars/blueprintlang.tmLanguage.json` | A copy of bluelink-vscode's grammar, for highlighting `blueprintlang` blocks |
+| `scripts/` | Build steps: release data, link checks, search index sync |
+
+## Checks
+
+- **Tools:** Node 22 (the deploy workflow's) with Yarn 4 through corepack (`packageManager`).
+ `yarn install --immutable` first, which also runs `fumadocs-mdx`.
+- **Release data:** `src/data/releases.json` is a committed stub, so `yarn dev` and
+ `next build` work without fetching. `yarn fetch-releases` overwrites it from the GitHub API;
+ restore it rather than commit the result, unless asked to refresh it.
+- **Checks,** before a change reaches `main`: `yarn lint`, `yarn check-links`, then
+ `yarn next build`, which type-checks, lints, fails on MDX errors and fetches the Inter font
+ over the network. `yarn check-links` catches broken links to non-docs routes only: every
+ `/docs/...` link passes, so after moving or renaming a page, grep `content/` for the old
+ path.
+- **Don't run `yarn build` as a check.** It runs `fetch-releases`, `check-links`, `next build`
+ and `post-build`, then `sync-content`, which replaces the production Algolia search index
+ using the secret key from the environment or `.env` (and fails without one, after the site
+ is built).
+- **Gates:** no git hooks, no commitlint, and no build on pull requests. `deploy.yml` runs on
+ pushes to `main`. `schema-sync.yml` fails when the schema copy differs, byte for byte, from
+ the Node SDK's `main`: on pushes to `main` and pull requests that change `public/schemas/`,
+ and every Monday.
+
+## Running locally
+
+`yarn dev` serves the site on port 3000. Search queries the production Algolia index, so local
+edits never appear in it; `.env.example` lists the keys with placeholder values (the real ones
+are repository variables and a secret), and without `.env` search says it isn't configured. Page
+dates and the sitemap come from git history, so a shallow clone gives wrong dates.
+
+## Compatibility
+
+- **Resource types and CLI:** the framework pages document the resource types
+ bluelink-transformer-celerity defines, plus planned ones ahead of it (`celerity/channel`,
+ `celerity/workflow`), marked with the versions they arrive in; the CLI pages document the
+ Celerity CLI. The docs are often written design-first, ahead of the code.
+- **Handler manifest schema:** copied unchanged from celerity-node-sdk's
+ `packages/cli/schemas/`, never edited here; `schema-sync.yml` checks it. Its `$id` is
+ `https://celerityframework.io/schemas/handler-manifest.v1.schema.json`, so that path never
+ moves.
+- **URLs:** pages are linked from the transformer's resource definitions (which reach the
+ registry and language server docs), its contract docs, and Celerity's and the SDKs' source,
+ READMEs and test fixtures. Nothing
+ can redirect (static export on GitHub Pages), so moving a page breaks its inbound links
+ unless a stub page stays at the old path.
+- **Grammar:** `grammars/` is a copy of bluelink-vscode's `syntaxes/blueprintlang.tmLanguage.json`,
+ updated by hand when the grammar changes.
+- **Persisted state:** none.
+
+## Conventions
+
+- Commits: mostly plain lowercase imperative subjects without a conventional-commit type
+ (`update workflow resource type docs ...`); nothing checks them, and there are no releases.
+- Language support claims follow `content/docs/framework/versions.mdx`. Interpreted languages
+ (Node.js, Python) run in-process in their runtime image; C# has a runtime image providing .NET,
+ with its handler running as a separate process over the handler IPC protocol; natively
+ compiled languages (Go) run on an OS-only runtime over the same protocol.
+
+## Safety
+
+- **A push to `main` deploys.** `deploy.yml` builds the site, syncs the Algolia index and
+ publishes to GitHub Pages at celerityframework.io, and nothing builds a pull request first,
+ so run the checks above before a change reaches `main`.
+- Don't run `yarn build` or `yarn sync-content` unless asked while Algolia credentials are
+ available, whether from `.env`, the shell environment or CI: they overwrite the production
+ search index. `.env` doesn't override variables already set in the shell.
+
+## Known mistakes
+
+
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000..43c994c
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1 @@
+@AGENTS.md
diff --git a/content/docs/cli/reference.mdx b/content/docs/cli/reference.mdx
index 2a58916..786bbc9 100644
--- a/content/docs/cli/reference.mdx
+++ b/content/docs/cli/reference.mdx
@@ -652,7 +652,7 @@ omitted, you are prompted to choose a template.
**Configuration Key**: `initLanguage`
-**Allowed Values**: `nodejs` | `python` | `java` | `dotnet` | `go`
+**Allowed Values**: `nodejs` | `python` | `dotnet` | `go`
The language or framework to use for a new Celerity project.
@@ -1558,9 +1558,9 @@ celerity schema codegen --lang go --out ./internal/generated/
**Type**: `string`
-**Allowed Values**: `typescript` | `python` | `go` | `java` | `csharp`
+**Allowed Values**: `typescript` | `python` | `go` | `csharp`
-The target language for code generation. C# follows its language runtime in v1. Java follows a language runtime that is under consideration rather than committed. See [Celerity versions](/docs/framework/versions).
+The target language for code generation. C# follows its language runtime in v1. See [Celerity versions](/docs/framework/versions).
| Language | Output | Status |
|---|---|---|
@@ -1568,7 +1568,6 @@ The target language for code generation. C# follows its language runtime in v1.
| `python` | Pydantic model classes | ✅ Available in v0 |
| `go` | Structs with `db` tags (SQL) or `json` tags (NoSQL), column/table or field/index constants, and scan or validation helpers | ✅ Available in v0 |
| `csharp` | Record types | 🚀 Planned for v1 |
-| `java` | Record classes | 💬 Under consideration |
#### `--out`
diff --git a/content/docs/csharp-runtime/index.mdx b/content/docs/csharp-runtime/index.mdx
index d444286..1407ebd 100644
--- a/content/docs/csharp-runtime/index.mdx
+++ b/content/docs/csharp-runtime/index.mdx
@@ -3,6 +3,6 @@ title: Celerity C#/.NET Runtime & SDK
description: The C#/.NET runtime and SDK for Celerity applications
---
-🚀 **Planned for v1** - The C#/.NET runtime and SDK are planned for the v1 release (target: February 2028), alongside the Azure deployment targets. Documentation will be available in a future v0 evolution.
+🚀 **Planned for v1** - The C#/.NET runtime and SDK are planned for the v1 release (target: February 2028), alongside the Azure deployment targets. The C# runtime image provides the .NET runtime, and the core runtime runs your C# handlers as a separate process over the [Celerity IPC protocol](/docs/framework/runtime/handler-ipc-protocol). Documentation will be published as the v1 release approaches.
See the [Celerity versions](/docs/framework/versions) page for the full roadmap.
diff --git a/content/docs/framework/applications/nosql-datastore-schema-management.mdx b/content/docs/framework/applications/nosql-datastore-schema-management.mdx
index 39e7abd..5682985 100644
--- a/content/docs/framework/applications/nosql-datastore-schema-management.mdx
+++ b/content/docs/framework/applications/nosql-datastore-schema-management.mdx
@@ -982,10 +982,6 @@ This is a real gap rather than a Go quirk: `nullable` fields that are also requi
🚀 **Planned for v1** - C# type generation (record types) arrives with the C# runtime in v1.
-### Java
-
-💬 **Under consideration** - Type generation follows the language runtime, and Java is considered rather than committed. It would generate record classes. See [Celerity versions](/docs/framework/versions).
-
### Defaults
Schema `default` values are applied at construction time by generated code and are never silently injected by the SDK on write.
diff --git a/content/docs/framework/applications/resources/celerity-handler.mdx b/content/docs/framework/applications/resources/celerity-handler.mdx
index 2f68679..067a006 100644
--- a/content/docs/framework/applications/resources/celerity-handler.mdx
+++ b/content/docs/framework/applications/resources/celerity-handler.mdx
@@ -2070,7 +2070,7 @@ The Celerity runtime identifier is resolved to a concrete runtime in each enviro
The Celerity deploy engine chooses the closest available runtime on each target platform. If a target doesn't support the exact version, it falls back to the nearest supported version and surfaces a warning during `celerity deploy`.
-Google Cloud Functions does not offer a custom-runtime mechanism, so OS-only runtimes, where a pre-compiled handler binary is uploaded and executed directly, can not be deployed there. Languages that compile ahead of time are supported (Go to a native binary, Java and .NET to bytecode on a virtual machine), but the platform builds your handler from source rather than running a binary you provide.
+Google Cloud Functions does not offer a custom-runtime mechanism, so OS-only runtimes, where a pre-compiled handler binary is uploaded and executed directly, can not be deployed there. Languages that compile ahead of time are supported (Go to a native binary, .NET to bytecode on a virtual machine), but the platform builds your handler from source rather than running a binary you provide.
diff --git a/content/docs/framework/applications/sql-database-schema-management.mdx b/content/docs/framework/applications/sql-database-schema-management.mdx
index c994d54..6b5b6ca 100644
--- a/content/docs/framework/applications/sql-database-schema-management.mdx
+++ b/content/docs/framework/applications/sql-database-schema-management.mdx
@@ -1017,10 +1017,6 @@ Integer widths are faithful to the column rather than collapsed: `smallint` is `
🚀 **Planned for v1** - C# type generation (record types) arrives with the C# runtime in v1.
-### Java
-
-💬 **Under consideration** - Type generation follows the language runtime, and Java is considered rather than committed. It would generate record classes. See [Celerity versions](/docs/framework/versions).
-
## Schema Contracts
Schema contracts allow data teams to declare which tables they depend on, so they are automatically informed when schema changes affect them. Instead of manually tracking column-level dependencies, contracts operate at the table level: any structural change to a watched table triggers the contract's policy.
diff --git a/content/docs/framework/index.mdx b/content/docs/framework/index.mdx
index cefdfed..dcaad0e 100644
--- a/content/docs/framework/index.mdx
+++ b/content/docs/framework/index.mdx
@@ -60,7 +60,7 @@ You will be prompted to select a programming language for your application, befo
- Node.js (TypeScript)
- Go
-See the [runtime](docs/framework/runtime#supported-languages) documentation for more information and to see how you can implement Celerity applications in other languages.
+See the [runtime](/docs/framework/runtime#supported-languages) documentation for more information and to see how you can implement Celerity applications in other languages.
## Start your API locally
diff --git a/content/docs/framework/runtime/handler-ipc-protocol.mdx b/content/docs/framework/runtime/handler-ipc-protocol.mdx
index fe65fae..126158d 100644
--- a/content/docs/framework/runtime/handler-ipc-protocol.mdx
+++ b/content/docs/framework/runtime/handler-ipc-protocol.mdx
@@ -7,9 +7,9 @@ description: The protocol between the Celerity core runtime and a handlers execu
**Protocol Version:** `1.0`
**Ecosystem Compatibility:** v0 (Current)
-Protocol `1.0` was introduced in v0, along with the Go SDK, which is the tailored SDK built on it. What a protocol version change would mean for an existing handler binary is covered under [IPC Protocol Compatibility](/docs/framework/runtime/lifecycle#ipc-protocol-compatibility). Read more about Celerity versions [here](/docs/framework/versions).
+Protocol `1.0` was introduced in v0, along with the Go SDK, which is the tailored SDK built on it. The C# SDK, planned for v1, builds on it too. What a protocol version change would mean for an existing handler binary is covered under [IPC Protocol Compatibility](/docs/framework/runtime/lifecycle#ipc-protocol-compatibility). Read more about Celerity versions [here](/docs/framework/versions).
-For an interpreted language, Celerity publishes a runtime image containing that language's interpreter, and handlers run in the runtime's own process. For a compiled language there is no such image. The SDK produces a handler executable, the core runtime starts it as a separate process on an [OS-only runtime](/docs/framework/runtime/lifecycle#os-only-runtimes), and the two communicate over this protocol.
+For an interpreted language, Celerity publishes a runtime image containing that language's interpreter, and handlers run in the runtime's own process. Other languages run as a separate process that the core runtime starts and communicates with over this protocol. C# has its own runtime image, which provides the .NET runtime its handler process needs. A language that compiles to a native executable, such as Go, has no image of its own: the SDK produces a handler executable that runs on an [OS-only runtime](/docs/framework/runtime/lifecycle#os-only-runtimes).
This document is for anyone implementing the handler side of that contract, which in practice means an SDK author adding a language. Application authors using an existing SDK do not need it.
diff --git a/content/docs/framework/runtime/index.mdx b/content/docs/framework/runtime/index.mdx
index 42b8fe7..54c59f0 100644
--- a/content/docs/framework/runtime/index.mdx
+++ b/content/docs/framework/runtime/index.mdx
@@ -181,10 +181,13 @@ The Celerity runtime provides tailored SDK support for the following languages.
| Python | ✅ Available in v0 |
| Go | ✅ Available in v0 |
| C# | 🚀 Planned for v1 |
-| Java | 💬 Under consideration |
-
-Tailored SDK support is not the same as a language-specific runtime. For an interpreted language such as Node.js or Python, Celerity publishes a runtime image containing that language's interpreter. For a compiled language such as Go, there is no Go runtime image — the SDK produces a handler executable, and that executable runs on an [OS-only runtime](/docs/framework/runtime/lifecycle#os-only-runtimes), which is a bare OS image containing only the Celerity core runtime. The core runtime starts your executable as a separate process and communicates with it over the Celerity IPC protocol. One OS-only runtime serves every compiled language, so compiled languages do not appear in the [future runtime roadmap](/docs/framework/runtime/lifecycle#future-runtime-roadmap).
+
+Tailored SDK support is not the same as a language-specific runtime, and languages reach the core runtime in one of three ways:
+
+- **Interpreted languages** such as Node.js and Python get a runtime image containing that language's interpreter, and handlers run in the runtime's own process.
+- **C#** gets a runtime image containing the .NET runtime, which C# code needs to run. The core runtime starts the C# handler as a separate process and communicates with it over the [Celerity IPC protocol](/docs/framework/runtime/handler-ipc-protocol).
+- **Languages that compile to a native executable**, such as Go, have no runtime image of their own. The SDK produces a handler executable that runs on an [OS-only runtime](/docs/framework/runtime/lifecycle#os-only-runtimes), a bare OS image containing only the Celerity core runtime, which starts the executable as a separate process and communicates with it over the same IPC protocol. One OS-only runtime serves every such language, so they do not appear in the [future runtime roadmap](/docs/framework/runtime/lifecycle#future-runtime-roadmap).
diff --git a/content/docs/framework/runtime/lifecycle.mdx b/content/docs/framework/runtime/lifecycle.mdx
index ff7dc11..1a234df 100644
--- a/content/docs/framework/runtime/lifecycle.mdx
+++ b/content/docs/framework/runtime/lifecycle.mdx
@@ -70,7 +70,7 @@ The `os-only.debian13` runtime contains no language interpreter, so the "Upstrea
An OS-only runtime ships the Celerity core runtime on a bare operating system image with no language interpreter or language-specific SDK bindings. Your handler is a pre-compiled binary that the core runtime starts as a separate process and communicates with over the **Celerity IPC protocol**.
-This is how Celerity supports compiled languages. Rather than publishing a runtime per compiled language, the language-specific part lives in the Celerity SDK for that language. The Go SDK, for example, produces a handler executable that speaks the IPC protocol, and that executable runs on any OS-only runtime. One OS-only runtime therefore serves every compiled language Celerity has an SDK for.
+This is how Celerity supports languages that compile to a native executable. Rather than publishing a runtime per such language, the language-specific part lives in the Celerity SDK for that language. The Go SDK, for example, produces a handler executable that speaks the IPC protocol, and that executable runs on any OS-only runtime. One OS-only runtime therefore serves every natively compiled language Celerity has an SDK for.
Because there is no language version involved, two independent support clocks apply to an OS-only runtime:
@@ -137,7 +137,7 @@ v1 (target: February 2028) adds C#. It enters the Active phase upon its initial
Languages beyond it are considered case by case on demonstrated demand rather than committed in advance. A language runtime is a standing commitment rather than a one-off piece of work: everything on this page applies to it from the day it ships, including a published runtime image, security patching, adoption of new upstream versions within 3 months, and the Security-Only, Deprecated and End of Life windows.
-This applies only to languages that need an interpreter or virtual machine in the runtime image. A compiled language such as Go is supported through its Celerity SDK, which produces a handler executable that runs on an existing OS-only runtime; adding a compiled-language SDK does not add a runtime to this page, and the OS-only lifecycle and IPC protocol guarantees are what apply to those handlers.
+This applies only to languages that need an interpreter or virtual machine in the runtime image. C# is one: its runtime image contains the .NET runtime, and the core runtime runs the C# handler as a separate process over the Celerity IPC protocol, so the [IPC protocol guarantees](#ipc-protocol-compatibility) apply to it as well as this lifecycle policy. A language that compiles to a native executable, such as Go, is supported through its Celerity SDK, which produces a handler executable that runs on an existing OS-only runtime; adding such an SDK does not add a runtime to this page, and the OS-only lifecycle and IPC protocol guarantees are what apply to those handlers.
### New OS-only runtime variations
@@ -191,7 +191,7 @@ The Celerity deploy engine maps each Celerity runtime identifier to a [supported
The Celerity deploy engine maps each Celerity runtime identifier to a [supported Google Cloud Functions runtime](https://cloud.google.com/functions/docs/concepts/execution-environment#runtimes). When Google deprecates a Cloud Functions runtime that a mapping targets, Celerity will update the mapping and emit CLI warnings for affected applications.
-Google Cloud Functions does not offer a custom-runtime mechanism, so OS-only runtimes, where a pre-compiled handler binary is uploaded and executed directly, can not be deployed there. Languages that compile ahead of time are supported (Go to a native binary, Java and .NET to bytecode on a virtual machine), but the platform builds your handler from source rather than running a binary you provide.
+Google Cloud Functions does not offer a custom-runtime mechanism, so OS-only runtimes, where a pre-compiled handler binary is uploaded and executed directly, can not be deployed there. Languages that compile ahead of time are supported (Go to a native binary, .NET to bytecode on a virtual machine), but the platform builds your handler from source rather than running a binary you provide.
### Azure Functions
@@ -217,6 +217,6 @@ _Lifecycle dates for planned runtimes will be published when the runtimes are re
Debian 14 (forky) is expected in the middle of 2027. The `os-only.debian14` runtime will be added within 3 months of that release under the [adoption policy for new OS-only variations](#new-os-only-runtime-variations), which puts it around the v1 release rather than tied to it. When it is added, `os-only.debian13` transitions to Security-Only; existing handlers pinned to `os-only.debian13` are unaffected.
-
-Compiled languages such as Go do not appear in this roadmap because they do not get a language-specific runtime. Language support for a compiled language lives entirely in its Celerity SDK, which produces a handler executable that runs on an OS-only runtime. See [OS-only Runtimes](#os-only-runtimes).
+
+Languages that compile to a native executable, such as Go, do not appear in this roadmap because they do not get a language-specific runtime. Language support for a compiled language lives entirely in its Celerity SDK, which produces a handler executable that runs on an OS-only runtime. See [OS-only Runtimes](#os-only-runtimes).
diff --git a/content/docs/index.mdx b/content/docs/index.mdx
index 986a7fa..525db88 100644
--- a/content/docs/index.mdx
+++ b/content/docs/index.mdx
@@ -1,13 +1,16 @@
---
-title: Hello World
-description: Your first document
+title: Celerity Documentation
+description: Documentation for the Celerity framework, CLI, runtimes and SDKs
---
-Welcome to the docs! You can start writing documents in `/content/docs`.
-
-## What is Next?
+Celerity is a framework for building backend applications from simple building blocks that run on multiple cloud providers. Start with the [overview](/docs/framework/overview), or go straight to a section.
-
-
+
+
+
+
+
+
+
diff --git a/content/docs/test.mdx b/content/docs/test.mdx
deleted file mode 100644
index d1ee3a8..0000000
--- a/content/docs/test.mdx
+++ /dev/null
@@ -1,17 +0,0 @@
----
-title: Components
-description: Components
----
-
-## Code Block
-
-```js
-console.log('Hello World');
-```
-
-## Cards
-
-
-
-
-
diff --git a/public/schemas/handler-manifest.v1.schema.json b/public/schemas/handler-manifest.v1.schema.json
index 873d3f0..ae66cc3 100644
--- a/public/schemas/handler-manifest.v1.schema.json
+++ b/public/schemas/handler-manifest.v1.schema.json
@@ -4,13 +4,7 @@
"title": "Celerity Handler Manifest",
"description": "Output schema for Celerity language-specific extractor tools. Describes all handlers discovered in a Celerity application module via language-specific metadata scanning. Consumed by the Celerity CLI to merge with blueprint infrastructure configuration.",
"type": "object",
- "required": [
- "version",
- "handlers",
- "functionHandlers",
- "guardHandlers",
- "dependencyGraph"
- ],
+ "required": ["version", "handlers", "functionHandlers", "guardHandlers", "dependencyGraph"],
"additionalProperties": false,
"properties": {
"version": {
@@ -99,15 +93,7 @@
"ClassHandlerEntry": {
"type": "object",
"description": "A single handler method discovered from an annotated controller or consumer class.",
- "required": [
- "resourceName",
- "className",
- "methodName",
- "sourceFile",
- "handlerType",
- "annotations",
- "spec"
- ],
+ "required": ["resourceName", "className", "methodName", "sourceFile", "handlerType", "annotations", "spec"],
"additionalProperties": false,
"properties": {
"resourceName": {
@@ -138,13 +124,7 @@
"FunctionHandlerEntry": {
"type": "object",
"description": "A function-based handler registered via a framework-provided handler registration function.",
- "required": [
- "resourceName",
- "exportName",
- "sourceFile",
- "handlerType",
- "spec"
- ],
+ "required": ["resourceName", "exportName", "sourceFile", "handlerType", "spec"],
"additionalProperties": false,
"properties": {
"resourceName": {
@@ -171,14 +151,7 @@
"GuardHandlerEntry": {
"type": "object",
"description": "A guard handler discovered from an annotated guard class or a guard registration function.",
- "required": [
- "resourceName",
- "guardName",
- "sourceFile",
- "guardType",
- "annotations",
- "spec"
- ],
+ "required": ["resourceName", "guardName", "sourceFile", "guardType", "annotations", "spec"],
"additionalProperties": false,
"properties": {
"resourceName": {
diff --git a/src/app/docs/[[...slug]]/page.tsx b/src/app/docs/[[...slug]]/page.tsx
index eae8ed1..3ebaa4b 100644
--- a/src/app/docs/[[...slug]]/page.tsx
+++ b/src/app/docs/[[...slug]]/page.tsx
@@ -31,7 +31,7 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
diff --git a/src/components/search.tsx b/src/components/search.tsx
index c3919c0..da52815 100644
--- a/src/components/search.tsx
+++ b/src/components/search.tsx
@@ -14,21 +14,44 @@ import {
} from 'fumadocs-ui/components/dialog/search';
import { HighlightResultOption, Hit, LiteClient, liteClient } from 'algoliasearch/lite';
import { SortedResult } from 'fumadocs-core/server';
-import { Fragment, ReactNode, useEffect, useState } from 'react';
+import { ReactNode, useEffect, useState } from 'react';
import { BaseIndex } from 'fumadocs-core/search/algolia';
-import { HighlightedText } from 'fumadocs-core/search/server';
-const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID!;
-const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_API_KEY!;
-const indexName = process.env.NEXT_PUBLIC_ALGOLIA_INDEX_NAME!;
-const client = liteClient(appId, apiKey);
+const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID;
+const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_API_KEY;
+const indexName = process.env.NEXT_PUBLIC_ALGOLIA_INDEX_NAME;
+const client = appId && apiKey ? liteClient(appId, apiKey) : null;
export default function CustomSearchDialog(props: SharedProps) {
const { search, setSearch, query } = useAlgoliaSearch({
client,
- indexName,
+ indexName: indexName || '',
});
+ if (!client || !indexName) {
+ // Return a simple search dialog if Algolia is not configured
+ return (
+ { }}
+ isLoading={false}
+ {...props}
+ >
+
+
+
+
+
+
+
+
+ Search is not configured. Please set up Algolia environment variables.
+
+
+
+ );
+ }
+
return (
{
- if (search.trim() === '') {
+ if (!client || search.trim() === '') {
setQuery({
isLoading: false,
data: 'empty',
diff --git a/src/lib/metadata.ts b/src/lib/metadata.ts
index ea4d8eb..3c326fb 100644
--- a/src/lib/metadata.ts
+++ b/src/lib/metadata.ts
@@ -33,8 +33,8 @@ export function createMetadata(override: Metadata): Metadata {
};
}
+// The site is a static export served from GitHub Pages at celerityframework.io.
export const baseUrl =
- process.env.NODE_ENV === 'development' ||
- !process.env.VERCEL_PROJECT_PRODUCTION_URL
+ process.env.NODE_ENV === 'development'
? new URL('http://localhost:3000')
- : new URL(`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`);
+ : new URL('https://celerityframework.io');