mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-22 17:48:20 +03:00
48 lines
835 B
JavaScript
48 lines
835 B
JavaScript
app waspleau {
|
|
wasp: {
|
|
version: "^0.14.0"
|
|
},
|
|
|
|
title: "Waspleau",
|
|
|
|
server: {
|
|
setupFn: import serverSetup from "@src/serverSetup"
|
|
},
|
|
}
|
|
|
|
job github {
|
|
executor: PgBoss,
|
|
perform: {
|
|
fn: import { workerFunction } from "@src/workers/github"
|
|
},
|
|
schedule: {
|
|
cron: "*/10 * * * *"
|
|
},
|
|
entities: [Datum]
|
|
}
|
|
|
|
job loadTime {
|
|
executor: PgBoss,
|
|
perform: {
|
|
fn: import { workerFunction } from "@src/workers/loadTime"
|
|
},
|
|
schedule: {
|
|
cron: "*/5 * * * *",
|
|
args: {=json {
|
|
"url": "https://wasp-lang.dev",
|
|
"name": "wasp-lang.dev Load Time"
|
|
} json=}
|
|
},
|
|
entities: [Datum]
|
|
}
|
|
|
|
route RootsRoute { path: "/", to: MainPage }
|
|
page MainPage {
|
|
component: import Main from "@src/MainPage"
|
|
}
|
|
|
|
query dashboard {
|
|
fn: import { refreshDashboardData } from "@src/dashboard",
|
|
entities: [Datum]
|
|
}
|