Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"node": ">=20.0.0"
},
"dependencies": {
"@tigrisdata/storage": "^3.1.1",
"@tigrisdata/storage": "^3.2.0",
"just-bash": "^2.14.2"
},
"release": {
Expand Down
9 changes: 5 additions & 4 deletions playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@auth0/auth0-spa-js": "^2.19.2",
"@tigrisdata/agent-shell": "^0.5.0",
"@tigrisdata/agent-shell": "^0.5.1",
"@xterm/addon-fit": "^0.11.0",
"@xterm/xterm": "^6.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions src/repl/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class ReplSession {
authMethod: "access-key" | "oauth",
io: ReplIO,
): Promise<void> {
if (newConfig.forcePathStyle === undefined) {
newConfig.forcePathStyle = true;
}
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
const bucketsResult = await listBuckets({ config: newConfig });
if ("error" in bucketsResult) {
const newShell = new TigrisShell(newConfig);
Expand Down
7 changes: 7 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export interface TigrisConfig {
bucket?: string;
/** Tigris endpoint. Defaults to https://t3.storage.dev */
endpoint?: string;
/** Use path-style URLs (endpoint/bucket/key) instead of virtual-hosted (bucket.endpoint/key). */
forcePathStyle?: boolean;
}

/**
Expand All @@ -44,4 +46,9 @@ export function validateConfig(config: TigrisConfig): void {
"TigrisConfig requires either (accessKeyId + secretAccessKey) or (sessionToken + organizationId)",
);
}

// Default to path-style URLs
if (config.forcePathStyle === undefined) {
config.forcePathStyle = true;
}
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
}