File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ import { BunWorkerDialect } from 'kysely-bun-worker'
8
8
import { createPool } from 'mysql2'
9
9
import { Pool } from 'pg'
10
10
11
- const appEnv = app . env || 'local'
12
-
13
11
export function getDialect ( ) : MysqlDialect | PostgresDialect | BunWorkerDialect {
14
- const driver = database . default ?? 'sqlite'
12
+ const appEnv = app . env || 'local'
13
+ const driver = database . default || 'sqlite'
15
14
16
15
log . debug ( `Using database driver: ${ driver } ` )
17
16
Original file line number Diff line number Diff line change @@ -14,9 +14,12 @@ export function originRequestFunctionHash(): string | undefined {
14
14
}
15
15
}
16
16
17
- const docsSrc = [ path . projectPath ( 'docs' ) , path . frameworkPath ( 'docs/dist' ) ]
18
-
19
17
export function websiteSourceHash ( ) : string | undefined {
18
+ const docsSrc = [
19
+ path . projectPath ( 'docs' ) ,
20
+ path . frameworkPath ( 'docs/dist' ) ,
21
+ ]
22
+
20
23
const websiteSrc = [
21
24
path . projectPath ( 'resources/views' ) ,
22
25
path . projectPath ( 'resources/assets' ) ,
@@ -28,9 +31,14 @@ export function websiteSourceHash(): string | undefined {
28
31
path . frameworkPath ( 'views/web' ) ,
29
32
]
30
33
31
- return config . appath . docMode === true ? hashPaths ( docsSrc ) : hashPaths ( websiteSrc )
34
+ return config . app . docMode === true ? hashPaths ( docsSrc ) : hashPaths ( websiteSrc )
32
35
}
33
36
34
37
export function docsSourceHash ( ) : string | undefined {
38
+ const docsSrc = [
39
+ path . projectPath ( 'docs' ) ,
40
+ path . frameworkPath ( 'docs/dist' ) ,
41
+ ]
42
+
35
43
return hashPaths ( docsSrc )
36
44
}
You can’t perform that action at this time.
0 commit comments