Skip to content

Commit f1e237b

Browse files
committed
chore: wip
1 parent 2a03c12 commit f1e237b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

storage/framework/core/database/src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import { BunWorkerDialect } from 'kysely-bun-worker'
88
import { createPool } from 'mysql2'
99
import { Pool } from 'pg'
1010

11-
const appEnv = app.env || 'local'
12-
1311
export function getDialect(): MysqlDialect | PostgresDialect | BunWorkerDialect {
14-
const driver = database.default ?? 'sqlite'
12+
const appEnv = app.env || 'local'
13+
const driver = database.default || 'sqlite'
1514

1615
log.debug(`Using database driver: ${driver}`)
1716

storage/framework/core/utils/src/hash.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ export function originRequestFunctionHash(): string | undefined {
1414
}
1515
}
1616

17-
const docsSrc = [path.projectPath('docs'), path.frameworkPath('docs/dist')]
18-
1917
export function websiteSourceHash(): string | undefined {
18+
const docsSrc = [
19+
path.projectPath('docs'),
20+
path.frameworkPath('docs/dist'),
21+
]
22+
2023
const websiteSrc = [
2124
path.projectPath('resources/views'),
2225
path.projectPath('resources/assets'),
@@ -28,9 +31,14 @@ export function websiteSourceHash(): string | undefined {
2831
path.frameworkPath('views/web'),
2932
]
3033

31-
return config.appath.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
34+
return config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
3235
}
3336

3437
export function docsSourceHash(): string | undefined {
38+
const docsSrc = [
39+
path.projectPath('docs'),
40+
path.frameworkPath('docs/dist'),
41+
]
42+
3543
return hashPaths(docsSrc)
3644
}

0 commit comments

Comments
 (0)