From f8655fb9058cf831072a9bef860eedc629331445 Mon Sep 17 00:00:00 2001
From: Kacper Wojciechowski <39823706+jog1t@users.noreply.github.com>
Date: Wed, 15 Oct 2025 15:28:31 +0200
Subject: [PATCH 01/13] refactor: onboarding
---
.../src/app/dialogs/connect-railway-frame.tsx | 10 ---
.../src/app/dialogs/edit-runner-config.tsx | 5 +-
frontend/src/app/runners-table.tsx | 10 +--
.../ns.$namespace/connect.tsx | 72 +++++++++++++++++++
4 files changed, 78 insertions(+), 19 deletions(-)
diff --git a/frontend/src/app/dialogs/connect-railway-frame.tsx b/frontend/src/app/dialogs/connect-railway-frame.tsx
index 71ca84a483..2b5b445530 100644
--- a/frontend/src/app/dialogs/connect-railway-frame.tsx
+++ b/frontend/src/app/dialogs/connect-railway-frame.tsx
@@ -353,13 +353,3 @@ function DeployToRailwayButton() {
);
}
-
-const useSelectedDatacenter = () => {
- const datacenter = useWatch({ name: "datacenter" });
-
- const { data } = useQuery(
- useEngineCompatDataProvider().regionQueryOptions(datacenter || "auto"),
- );
-
- return data?.url || engineEnv().VITE_APP_API_URL;
-};
diff --git a/frontend/src/app/dialogs/edit-runner-config.tsx b/frontend/src/app/dialogs/edit-runner-config.tsx
index 08474b446d..e3bf87ea98 100644
--- a/frontend/src/app/dialogs/edit-runner-config.tsx
+++ b/frontend/src/app/dialogs/edit-runner-config.tsx
@@ -49,7 +49,10 @@ export default function EditRunnerConfigFrameContent({
},
};
- const otherDcs = Object.entries(datacenters).filter(([k]) => k !== dc).filter(([k, v]) => v.serverless).map(([k, v]) => [k, config]);
+ const otherDcs = Object.entries(datacenters)
+ .filter(([k]) => k !== dc)
+ .filter(([k, v]) => v.serverless)
+ .map(([k, v]) => [k, config]);
console.log(otherDcs, [dc, config]);
diff --git a/frontend/src/app/runners-table.tsx b/frontend/src/app/runners-table.tsx
index dffc18ad7f..efbfdcbaa6 100644
--- a/frontend/src/app/runners-table.tsx
+++ b/frontend/src/app/runners-table.tsx
@@ -1,24 +1,18 @@
import {
- faHourglassClock,
faPlus,
- faSignal4,
- faSignal5,
faSignalAlt,
faSignalAlt2,
faSignalAlt3,
faSignalAlt4,
- faSignalGood,
Icon,
} from "@rivet-gg/icons";
import type { Rivet } from "@rivetkit/engine-api-full";
-import { useInfiniteQuery, useQuery } from "@tanstack/react-query";
+import { useInfiniteQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
-import { formatDistance, formatRelative } from "date-fns";
-import { useInterval } from "usehooks-ts";
+import { formatDistance } from "date-fns";
import {
Button,
DiscreteCopyButton,
- Ping,
Skeleton,
Table,
TableBody,
diff --git a/frontend/src/routes/_context/_cloud/orgs.$organization/projects.$project/ns.$namespace/connect.tsx b/frontend/src/routes/_context/_cloud/orgs.$organization/projects.$project/ns.$namespace/connect.tsx
index 4f1a239d79..ea56d416c8 100644
--- a/frontend/src/routes/_context/_cloud/orgs.$organization/projects.$project/ns.$namespace/connect.tsx
+++ b/frontend/src/routes/_context/_cloud/orgs.$organization/projects.$project/ns.$namespace/connect.tsx
@@ -356,6 +356,78 @@ export function RouteComponent() {
+ Start a new RivetKit project with Rivet Cloud. Use one + of our templates to get started quickly. +
+ +- Start a new RivetKit project with Rivet Cloud. Use one - of our templates to get started quickly. -
-Rivet provides its own intelligent load balancing mechanism.
-Value
+ Deploy the Rivet Railway template to get started quickly. +
+- Set the following environment variables in your Vercel project - settings. -
-+ Deploy the Rivet Vercel template to get started quickly. +
++ Set the following environment variables: +
+- - Deploy your project to Vercel using your preferred method - - . After deployment, return here to add the endpoint. -
Value
+ Deploy your code to Vercel and paste your deployment's endpoint: +
++ Need help deploying? See{" "} - Deploy your project to Vercel using your preferred method + Vercel's deployment documentation - . After deployment, return here to add the endpoint. + .
-
- Update your Rivet API route handler to export the{" "}
- maxDuration configuration.
+ If you have not created a project, see the{" "}
+
+ Next.js quickstart guide
+
+ .
First, install the Rivet Next.js package:
+Then, add your Rivet route handler for Rivet:
Connect your Next.js frontend to Rivet:
++ This token is safe to publish on your frontend. +
++ Start a new RivetKit project with Rivet Cloud. Use + one of our templates to get started quickly. +
+ +- Start a new RivetKit project with Rivet Cloud. Use - one of our templates to get started quickly. -
- -