Skip to content

Commit 9372f45

Browse files
committed
use clouflare for docs
1 parent bf4f1aa commit 9372f45

File tree

8 files changed

+8
-61
lines changed

8 files changed

+8
-61
lines changed

.github/workflows/pages.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

bun.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dev:dashboard": "bun run --filter duron-dashboard dev",
2020
"dev:examples:basic": "bun run --filter examples dev",
2121
"build": "bun run --filter '*' build",
22+
"build:docs": "bun run --filter docs build",
2223
"typecheck": "bun run --filter '*' typecheck"
2324
}
2425
}

packages/docs/src/components/search.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default function DefaultSearchDialog(props: SharedProps) {
2727
const { locale } = useI18n() // (optional) for i18n
2828

2929
const { search, setSearch, query } = useDocsSearch({
30-
from: import.meta.env.PROD ? '/duron/api/search' : '/api/search',
3130
type: 'static',
3231
initOrama,
3332
locale,

packages/docs/src/router.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ export function getRouter() {
99
defaultPreload: 'intent',
1010
scrollRestoration: true,
1111
defaultNotFoundComponent: NotFound,
12-
// basepath: import.meta.env.PROD ? '/duron' : '/',
1312
})
1413
}

packages/docs/vite.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { defineConfig } from 'vite'
88
import tsConfigPaths from 'vite-tsconfig-paths'
99

1010
export default defineConfig({
11-
base: process.env.NODE_ENV === 'production' ? '/duron' : '/',
1211
server: {
1312
port: 3001,
1413
},
@@ -29,7 +28,6 @@ export default defineConfig({
2928
prerender: {
3029
outputPath: 'index.html',
3130
enabled: true,
32-
crawlLinks: true,
3331
},
3432
},
3533

packages/duron/migrations/postgres/meta/0000_snapshot.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,8 @@
238238
"tableFrom": "job_steps",
239239
"tableTo": "jobs",
240240
"schemaTo": "duron",
241-
"columnsFrom": [
242-
"job_id"
243-
],
244-
"columnsTo": [
245-
"id"
246-
],
241+
"columnsFrom": ["job_id"],
242+
"columnsTo": ["id"],
247243
"onDelete": "cascade",
248244
"onUpdate": "no action"
249245
}
@@ -253,10 +249,7 @@
253249
"unique_job_step_name": {
254250
"name": "unique_job_step_name",
255251
"nullsNotDistinct": false,
256-
"columns": [
257-
"job_id",
258-
"name"
259-
]
252+
"columns": ["job_id", "name"]
260253
}
261254
},
262255
"policies": {},
@@ -610,4 +603,4 @@
610603
"schemas": {},
611604
"tables": {}
612605
}
613-
}
606+
}

packages/duron/migrations/postgres/meta/_journal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"breakpoints": true
1111
}
1212
]
13-
}
13+
}

0 commit comments

Comments
 (0)