Skip to content

Commit f309250

Browse files
chore: wip
1 parent eddffd7 commit f309250

File tree

8 files changed

+11
-23
lines changed

8 files changed

+11
-23
lines changed

storage/framework/core/buddy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@
136136
}
137137
},
138138
"web-types": "./web-types.json"
139-
}
139+
}

storage/framework/core/cache/src/drivers/dynamodb.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { config } from '@stacksjs/config'
21
import { BentoCache, bentostore } from 'bentocache'
32
import { dynamoDbDriver } from 'bentocache/drivers/dynamodb'
43
import { BaseCacheDriver } from './base'
@@ -13,26 +12,19 @@ export interface DynamoDBOptions {
1312

1413
export class DynamoDBCacheDriver extends BaseCacheDriver {
1514
constructor(options: DynamoDBOptions = {}) {
16-
// Use environment variables with fallbacks
17-
const awsAccessKeyId = options.accessKeyId ?? config.cache.drivers?.dynamodb?.key ?? 'dummy'
18-
const awsSecretAccessKey = options.secretAccessKey ?? config.cache.drivers?.dynamodb?.secret ?? 'dummy'
19-
const dynamoEndpoint = options.endpoint ?? config.cache.drivers?.dynamodb?.endpoint ?? 'http://localhost:8000'
20-
const tableName = options.tableName ?? config.cache.drivers?.dynamodb?.table ?? 'stacks'
21-
const region = options.region ?? config.cache.drivers?.dynamodb?.region ?? 'us-east-1'
22-
2315
const client = new BentoCache({
2416
default: 'dynamo',
2517
stores: {
2618
dynamo: bentostore().useL2Layer(
2719
dynamoDbDriver({
28-
endpoint: dynamoEndpoint,
29-
region,
20+
endpoint: options.endpoint ?? 'http://localhost:8000',
21+
region: options.region ?? 'us-east-1',
3022
table: {
31-
name: tableName,
23+
name: options.tableName ?? 'stacks',
3224
},
3325
credentials: {
34-
accessKeyId: awsAccessKeyId,
35-
secretAccessKey: awsSecretAccessKey,
26+
accessKeyId: options.accessKeyId ?? 'dummy',
27+
secretAccessKey: options.secretAccessKey ?? 'dummy',
3628
},
3729
}),
3830
),

storage/framework/core/cache/src/drivers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const drivers: Record<string, CacheDriver> = {
1818
}
1919

2020
// Get configured driver name with fallback to memory
21-
const driverName = config.cache?.driver || 'memory'
21+
const driverName = 'memory'
2222

2323
// Select the appropriate driver
2424
const selectedDriver = drivers[driverName] || memory

storage/framework/core/config/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { overrides } from './overrides'
55

66
// merged defaults and overrides
77
export const config: StacksOptions = {
8-
// ...defaults,
8+
...defaults,
99
...overrides,
1010
}
1111

storage/framework/core/development/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@
6262
"devDependencies": {
6363
"@total-typescript/ts-reset": "^0.6.1"
6464
}
65-
}
65+
}

storage/framework/core/env/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export function process(): Env {
3535

3636
export const env: Env = new Proxy(process(), handler)
3737

38-
console.log('env', env)
39-
4038
export function writeEnv(key: EnvKey, value: string, options?: { path: string }): void {
4139
const envPath = options?.path || projectPath('.env')
4240
const env = fs.readFileSync(envPath, 'utf-8')

storage/framework/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,4 +352,4 @@
352352
"@stacksjs/vite-config": "^0.70.23",
353353
"@stacksjs/vite-plugin": "^0.70.23"
354354
}
355-
}
355+
}

storage/framework/core/payments/src/drivers/stripe.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { config } from '@stacksjs/config'
22
import Stripe from 'stripe'
33

4-
const apiKey = config?.services?.stripe?.secretKey || ''
5-
6-
console.log('apiKey', apiKey)
4+
const apiKey = config?.services?.stripe?.secretKey || 'aa'
75

86
const client = new Stripe(apiKey, {
97
apiVersion: '2025-02-24.acacia',

0 commit comments

Comments
 (0)