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
16 changes: 0 additions & 16 deletions vendor/actors/examples/docs/actors-quickstart-next-js/registry.ts

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/actors-destroy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const actorId = "00000000-0000-0000-0000-000000000000";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/actors-list-names.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";

Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/actors-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";

Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/actors-reschedule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const actorId = "00000000-0000-0000-0000-000000000000";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/actors-sleep.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const actorId = "00000000-0000-0000-0000-000000000000";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/connection-actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ws = new WebSocket(
`wss://rivet.example.com/gateway/${process.env.ACTOR_ID}/connect`,
`wss://api.rivet.dev/gateway/${process.env.ACTOR_ID}/connect`,
["rivet", "rivet_encoding.json", `rivet_token.${process.env.RIVET_TOKEN}`],
);

Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/connection-connect.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Open a connection by actor name. The selector query parameters are the same
// ones used by the HTTP endpoints; the token and encoding travel as
// WebSocket subprotocols because browsers cannot set headers on an upgrade.
const url = new URL("wss://rivet.example.com/gateway/counter/connect");
const url = new URL("wss://api.rivet.dev/gateway/counter/connect");
url.searchParams.set("rvt-namespace", process.env.RIVET_NAMESPACE!);
url.searchParams.set("rvt-method", "getOrCreate");
url.searchParams.set("rvt-key", "my-counter");
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/connection-errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ws = new WebSocket(
`wss://rivet.example.com/gateway/${process.env.ACTOR_ID}/connect`,
`wss://api.rivet.dev/gateway/${process.env.ACTOR_ID}/connect`,
["rivet", "rivet_encoding.json", `rivet_token.${process.env.RIVET_TOKEN}`],
);

Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/connection-events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ws = new WebSocket(
`wss://rivet.example.com/gateway/${process.env.ACTOR_ID}/connect`,
`wss://api.rivet.dev/gateway/${process.env.ACTOR_ID}/connect`,
["rivet", "rivet_encoding.json", `rivet_token.${process.env.RIVET_TOKEN}`],
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const token = process.env.RIVET_TOKEN ?? "";

const response = await fetch(`${endpoint}/datacenters`, {
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/control-plane-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";

const response = await fetch(`${endpoint}/metadata`);
const metadata = await response.json();
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/gateway-metadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/metadata`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/gateway-queue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const actorId = process.env.ACTOR_ID;
const response = await fetch(`${endpoint}/gateway/${actorId}/queue/increment`, {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-action.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/action/increment`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-connections.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/connections`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/database/execute`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-database-rows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const query = new URLSearchParams({
table: "users",
limit: "100",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/database/schema`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-queue-delete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/queue`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-queue-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/queue?limit=50`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-queue-post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/queue`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-rpcs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/rpcs`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-state-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/state`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-state-patch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/state`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-summary.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/summary`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/inspector-traces.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/traces?startMs=0&limit=100`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/workflow-history`,
{ headers: { Authorization: `Bearer ${process.env.INSPECTOR_TOKEN}` } },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const response = await fetch(
`${endpoint}/gateway/${process.env.ACTOR_ID}/inspector/workflow/replay`,
{
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/namespaces-create.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const token = process.env.RIVET_TOKEN ?? "";

const response = await fetch(`${endpoint}/namespaces`, {
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/namespaces-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const token = process.env.RIVET_TOKEN ?? "";

const response = await fetch(`${endpoint}/namespaces`, {
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/tokens-inspect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const token = process.env.RIVET_TOKEN ?? "";

// Inspect reports on the token used to authenticate the request itself.
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/workers-configs-delete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const workerName = process.env.RUNNER_NAME ?? "default";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/workers-configs-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const workerName = process.env.RUNNER_NAME ?? "default";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/workers-configs-upsert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";
const workerName = process.env.RUNNER_NAME ?? "default";
Expand Down
2 changes: 1 addition & 1 deletion vendor/actors/examples/docs/api/workers-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const endpoint = "https://rivet.example.com";
const endpoint = "https://api.rivet.dev";
const namespace = process.env.RIVET_NAMESPACE ?? "default";
const token = process.env.RIVET_TOKEN ?? "";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function fetchToken(): Promise<{ actorId: string; token: string }> {
const { actorId } = await fetchToken();

const client = createClient<typeof registry>({
endpoint: "https://my-namespace@rivet.example.com",
endpoint: "https://rivet.example.com",
namespace: "production",

// Called whenever RivetKit needs a credential, including after one expires.
Expand Down
Loading