You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
### TL;DR
Renamed all references from `studio` to `inspector` in the codebase to maintain consistent terminology.
### What changed?
- Renamed the `studio` property to `inspector` in the `RunConfig` schema
- Updated all references to this property throughout the codebase
- Changed environment variable names from `RIVETKIT_STUDIO_TOKEN` to `RIVETKIT_INSPECTOR_TOKEN` and `RIVETKIT_STUDIO_DISABLE` to `RIVETKIT_INSPECTOR_DISABLE`
- Renamed `getStudioUrl` function to `getInspectorUrl`
- Updated log messages and comments to use "inspector" instead of "studio"
- Renamed `defaultStudioOrigins` to `defaultInspectorOrigins`
### How to test?
1. Ensure the inspector functionality works correctly after the rename
2. Verify that environment variables using the new `RIVETKIT_INSPECTOR_*` naming pattern work as expected
3. Check that the inspector URL is correctly generated and displayed in logs
4. Confirm that CORS settings are properly applied for inspector endpoints
### Why make this change?
This change standardizes terminology across the codebase by consistently using "inspector" instead of "studio". This improves code clarity, reduces confusion, and ensures that all references to this feature use the same naming convention. The rename aligns the code with the actual functionality being provided, which is an inspection tool rather than a studio.
@@ -59,7 +59,7 @@ export const InspectorConfigSchema = z
59
59
.default(()=>defaultCors),
60
60
61
61
/**
62
-
* Token used to access the Studio.
62
+
* Token used to access the Inspector.
63
63
*/
64
64
token: z
65
65
.function()
@@ -68,9 +68,9 @@ export const InspectorConfigSchema = z
68
68
.default(()=>defaultTokenFn),
69
69
70
70
/**
71
-
* Default RivetKit server endpoint for Rivet Studio to connect to. This should be the same endpoint as what you use for your Rivet client to connect to RivetKit.
71
+
* Default RivetKit server endpoint for Rivet Inspector to connect to. This should be the same endpoint as what you use for your Rivet client to connect to RivetKit.
72
72
*
73
-
* This is a convenience property just for printing out the studio URL.
73
+
* This is a convenience property just for printing out the inspector URL.
"Studio Token is not set, but Studio is enabled. Please set it in the run configuration `inspector.token` or via `RIVETKIT_STUDIO_TOKEN` environment variable. Studio will not be accessible.",
62
+
"Inspector Token is not set, but Inspector is enabled. Please set it in the run configuration `inspector.token` or via `RIVETKIT_INSPECTOR_TOKEN` environment variable. Inspector will not be accessible.",
Copy file name to clipboardExpand all lines: packages/core/src/manager/router.ts
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,7 @@ export function createManagerRouter(
160
160
161
161
router.use("*",loggerMiddleware(logger()));
162
162
163
-
if(runConfig.cors||runConfig.studio?.cors){
163
+
if(runConfig.cors||runConfig.inspector?.cors){
164
164
router.use("*",async(c,next)=>{
165
165
// Don't apply to WebSocket routes
166
166
// HACK: This could be insecure if we had a varargs path. We have to check the path suffix for WS since we don't know the path that this router was mounted.
@@ -179,19 +179,19 @@ export function createManagerRouter(
0 commit comments