Skip to content

Commit f1e93ba

Browse files
committed
fix
1 parent 91e59f2 commit f1e93ba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

DEPLOYMENT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A few principles:
1414
- All components should be easy to self-host, we don't want forced dependencies on any cloud provider (note that both supabase and the server are self-hostable).
1515
- Only www.typecell.org is considered `prod`. All Vercel branch-preview environments are considered `staging`, except the main branch which is `prod`.
1616
- Preview environments all share the same `staging` database. This means feature-branches must be compatible in terms of database schema.
17+
- Preview environments all share the same `HocusPocus backend server` (`packages/server`). This means feature-branches must be compatible to run against the same `packages/server`.
1718
- DB Migrations are deployed to `staging` / `prod` when they are pushed to the `staging` / `main` branch (see github workflows).
1819

1920
## Self-host

packages/server/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Server } from "@hocuspocus/server";
33
import * as dotenv from "dotenv";
44
import { SupabaseHocuspocus } from "./hocuspocus/extension-supabase/SupabaseHocuspocus.js";
55

6-
console.log("pre", process.env.VITE_TYPECELL_SUPABASE_SERVICE_KEY);
76
if (process.env.MODE === "development") {
87
dotenv.config({ path: ".env.development" });
98
} else if (process.env.MODE === "staging") {
@@ -15,7 +14,6 @@ if (process.env.MODE === "development") {
1514
"Invalid MODE, run with env MODE=development|staging|production"
1615
);
1716
}
18-
console.log("post", process.env.VITE_TYPECELL_SUPABASE_SERVICE_KEY);
1917

2018
const server = Server.configure({
2119
extensions: [new Logger(), new SupabaseHocuspocus({})],

0 commit comments

Comments
 (0)