Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
test:
name: Test
runs-on: ubuntu-24.04
timeout-minutes: 10
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ it.layer(NodeServices.layer)("CommandCenter provider runtime isolation", (it) =>
const makeLayout = Effect.fn("CommandCenterProviderIsolation.test.makeLayout")(function* () {
const fileSystem = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
const baseDir = yield* fileSystem.makeTempDirectoryScoped({ prefix: "cc-isolation-" });
const temporaryBaseDir = yield* fileSystem.makeTempDirectoryScoped({
prefix: "cc-isolation-",
});
const baseDir = yield* fileSystem.realPath(temporaryBaseDir);
const worktreesDir = path.join(baseDir, "worktrees");
const repositoriesDir = path.join(baseDir, "repositories");
yield* fileSystem.makeDirectory(worktreesDir, { recursive: true });
Expand Down
7 changes: 6 additions & 1 deletion apps/server/src/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3425,7 +3425,12 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
);

for (const desktopOrigin of ["t3code://app", "t3code-dev://app"]) {
for (const desktopOrigin of [
"commandcenter://app",
"commandcenter-dev://app",
"t3code://app",
"t3code-dev://app",
]) {
it.effect(`allows credentialed preflights from ${desktopOrigin} in development`, () =>
Effect.gen(function* () {
yield* buildAppUnderTest({
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ const AutomationRecoveryCoordinatorLayerLive = AutomationRecoveryCoordinator.lay
const RunLifecycleLayerLive = RunLifecycle.layer.pipe(
Layer.provide(ProviderLayerLive),
Layer.provide(OrchestrationProjectionSnapshotQueryLive),
Layer.provide(OrchestrationLayerLive),
Layer.provide(PersistenceLayerLive),
);

Expand Down
58 changes: 2 additions & 56 deletions apps/web/vercel.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
import { matchers, routes, type Transform, type VercelConfig } from "@vercel/config/v1";

const ROUTER_HOST = "app.t3.codes";
const HOSTED_WEB_CHANNEL_COOKIE = "t3code_web_channel";
const LATEST_ORIGIN = "https://latest.app.t3.codes";
const NIGHTLY_ORIGIN = "https://nightly.app.t3.codes";
const CLEAN_CHANNEL_QUERY_TRANSFORMS = [
{
type: "request.query",
op: "delete",
target: { key: "channel" },
},
] satisfies Transform[];

function channelCookie(channel: "latest" | "nightly"): string {
return [
`${HOSTED_WEB_CHANNEL_COOKIE}=${channel}`,
"Path=/",
"Max-Age=31536000",
"HttpOnly",
"Secure",
"SameSite=Lax",
].join("; ");
}
import { routes, type VercelConfig } from "@vercel/config/v1";

export const config: VercelConfig = {
buildCommand:
Expand All @@ -30,37 +7,6 @@ export const config: VercelConfig = {
deploymentEnabled: false,
},
installCommand:
"npm install -g vite-plus && vp install --ignore-scripts --filter '@t3tools/scripts...' --filter '@t3tools/web...'",
routes: [
{
src: "/__t3code/channel",
has: [matchers.query("channel", "nightly")],
transforms: CLEAN_CHANNEL_QUERY_TRANSFORMS,
headers: {
Location: "/",
"Set-Cookie": channelCookie("nightly"),
},
status: 302,
},
{
src: "/__t3code/channel",
transforms: CLEAN_CHANNEL_QUERY_TRANSFORMS,
headers: {
Location: "/",
"Set-Cookie": channelCookie("latest"),
},
status: 302,
},
{
src: "/(.*)",
has: [matchers.host(ROUTER_HOST), matchers.cookie(HOSTED_WEB_CHANNEL_COOKIE, "nightly")],
dest: `${NIGHTLY_ORIGIN}/$1`,
},
{
src: "/(.*)",
has: [matchers.host(ROUTER_HOST)],
dest: `${LATEST_ORIGIN}/$1`,
},
],
"npm install -g vite-plus && vp install --filter '@t3tools/scripts...' --filter '@t3tools/web...'",
rewrites: [routes.rewrite("/(.*)", "/index.html")],
};
Loading