Workspace & Application
This guide explains how Workspaces and Applications work in Tailor Platform.
Workspace
A Workspace is the top-level container for your Tailor Platform resources.
Creating a Workspace
Using the SDK CLI:
bash
# Create a new workspace
npx tailor-sdk workspace create --name my-workspace --region us-west
# List your workspaces
npx tailor-sdk workspace listOr create one through the Console.
Workspace Regions
Workspaces are deployed to specific regions:
| Region | Location |
|---|---|
us-west | United States (West) |
ap-northeast | Asia Pacific (Tokyo) |
Application
An Application represents a complete API deployment within a workspace.
Application Configuration
Configure your application in tailor.config.ts:
typescript
import { defineConfig } from "@tailor-platform/sdk";
export default defineConfig({
application: {
name: "my-app",
subgraphs: ["tailordb", "pipeline", "auth"],
},
});Subgraphs
Subgraphs define which services your application uses:
tailordb- Database servicepipeline- Custom resolvers and business logicauth- Authentication and authorization
Deploying Applications
Deploy your application using the SDK CLI:
bash
npm run deploy -- --workspace-id <your-workspace-id>