Skip to content

Commit ca8ce20

Browse files
committed
feat: add optional endpoint param to s3 args
1 parent e5b15b2 commit ca8ce20

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/create-app/src/lib/utils/prompts.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ export function promptRemoteCacheProvider() {
167167
{
168168
value: 'github-actions',
169169
label: 'GitHub Actions',
170-
hint: 'The easiest way to start if you store your code on GitHub'
170+
hint: 'The easiest way to start if you store your code on GitHub',
171171
},
172172
{
173173
value: 's3',
174174
label: 'S3',
175-
hint: 'Work with any S3-compatible storage, including AWS S3 and Cloudflare R2'
175+
hint: 'Work with any S3-compatible storage, including AWS S3 and Cloudflare R2',
176176
},
177177
{
178178
value: null,
@@ -195,7 +195,7 @@ export function promptRemoteCacheProviderArgs(
195195
promptText({
196196
message: 'GitHub Personal Access Token (PAT)',
197197
placeholder: 'GITHUB_TOKEN',
198-
defaultValue: 'GITHUB_TOKEN'
198+
defaultValue: 'GITHUB_TOKEN',
199199
}),
200200
});
201201
case 's3':
@@ -207,6 +207,12 @@ export function promptRemoteCacheProviderArgs(
207207
message: 'Region',
208208
placeholder: 'us-west-1',
209209
}),
210+
endpoint: () =>
211+
promptText({
212+
message:
213+
'Endpoint (Only necessary for self-hosted S3 or Cloudflare R2)',
214+
placeholder: 'https://<ACCOUNT_ID>.r2.cloudflarestorage.com',
215+
}),
210216
});
211217
}
212218
}

0 commit comments

Comments
 (0)