File tree Expand file tree Collapse file tree 9 files changed +31
-39
lines changed Expand file tree Collapse file tree 9 files changed +31
-39
lines changed Original file line number Diff line number Diff line change 2
2
* The Binary/CLI Options used in `./config/binary.ts`.
3
3
*/
4
4
export interface BinaryOptions {
5
- name ? : string
6
- command ? : string
7
- description ? : string
8
- // path? : string // TODO: add this for a configurable path where the commands are located
5
+ name : string
6
+ command : string
7
+ description : string
8
+ // path: string // TODO: add this for a configurable path where the commands are located
9
9
}
10
10
11
11
export type BinaryConfig = Partial < BinaryOptions >
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ export interface CdnOptions {
14
14
driver : string
15
15
}
16
16
17
- export type CdnConfig = CdnOptions
17
+ export type CdnConfig = Partial < CdnOptions >
Original file line number Diff line number Diff line change @@ -2,7 +2,22 @@ export interface CloudOptions {
2
2
driver : 'aws'
3
3
4
4
storage : {
5
- private : boolean
5
+ /**
6
+ * Whether or not to also attach a file system to the cloud.
7
+ * This is in addition to the S3 storage. Disable this
8
+ * if you do not need to access the file system.
9
+ *
10
+ * @default true
11
+ * @example
12
+ * ```ts
13
+ * export default {
14
+ * storage: {
15
+ * useFileSystem: false
16
+ * }
17
+ * }
18
+ * ```
19
+ */
20
+ useFileSystem : boolean
6
21
}
7
22
8
23
firewall : {
Original file line number Diff line number Diff line change @@ -8,16 +8,6 @@ export interface StorageOptions {
8
8
* @see https://stacksjs.dev/docs/storage
9
9
*/
10
10
driver : 's3' | 'local'
11
-
12
- /**
13
- * **Storage Name**
14
- *
15
- * The name of the storage bucket.
16
- *
17
- * @default string `${app.url}-${region}-${accountId}`
18
- * @see https://stacksjs.dev/docs/storage
19
- */
20
- name : string
21
11
}
22
12
23
13
export type StorageConfig = Partial < StorageOptions >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type { BinaryConfig } from '@stacksjs/types'
8
8
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
9
9
*/
10
10
export default {
11
- name : 'Stacks CLI' ,
12
- command : 'stacks ' , // enables `stacks <command> <options>`
11
+ name : 'Buddy CLI' ,
12
+ command : 'buddy ' , // enables `buddy <command> <options>`
13
13
description : 'This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.' ,
14
14
} satisfies BinaryConfig
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import type { CloudConfig } from '@stacksjs/types'
2
- import { path as p } from '@stacksjs/path'
3
2
import security from './security'
4
3
5
4
/**
6
5
* **Cloud**
7
6
*
8
- * This configuration defines all of your services . Because Stacks is fully-typed, you may
9
- * hover any of the options below and the definitions will be provided. In case you
10
- * have any questions, feel free to reach out via Discord or GitHub Discussions.
7
+ * This configuration defines your cloud . Because Stacks is fully-typed, you may hover
8
+ * any of the options below and the definitions will be provided. In case you have
9
+ * any questions, feel free to reach out via Discord or GitHub Discussions.
11
10
*/
12
11
export default {
12
+ driver : 'aws' ,
13
13
firewall : security . app . firewall ,
14
14
storage : {
15
- private : true ,
16
- }
15
+ useFileSystem : true ,
16
+ } ,
17
+ // cdn: {}
17
18
} satisfies CloudConfig
Original file line number Diff line number Diff line change @@ -115,5 +115,5 @@ export default {
115
115
// },
116
116
] ,
117
117
} ,
118
- }
118
+ } ,
119
119
} satisfies SecurityConfig
Original file line number Diff line number Diff line change 1
1
import type { StorageConfig } from '@stacksjs/types'
2
- import app from './app'
3
2
4
3
/**
5
4
* **Storage Options**
@@ -10,5 +9,4 @@ import app from './app'
10
9
*/
11
10
export default {
12
11
driver : 's3' ,
13
- name : app . name || 'my-custom-bucket-name' ,
14
12
} satisfies StorageConfig
You can’t perform that action at this time.
0 commit comments