-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Bloxs <[email protected]>
- Loading branch information
1 parent
d44a4f3
commit ef1d0dc
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
import { defineConfig } from "$fresh/server.ts"; | ||
import unocssPlugin from "@/utils/plugins/unocss.ts"; | ||
import { | ||
createQueueValueHandler, | ||
kvInsightsPlugin, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { kv } from "./utils/db/kv.ts"; | ||
|
||
const kvInsightsQueueValueHandler = createQueueValueHandler(); | ||
|
||
kv.listenQueue(async (value: unknown) => { | ||
await kvInsightsQueueValueHandler(value); // execute the kv-insights value handler | ||
// add your code to handle the queue value here | ||
}); | ||
import { kv } from "@/utils/db/kv.ts"; | ||
|
||
export default defineConfig({ | ||
plugins: [unocssPlugin() | ||
// kvInsightsPlugin({ | ||
// kv | ||
// }) | ||
plugins: [ | ||
unocssPlugin(), | ||
kvInsightsPlugin({ | ||
kv, | ||
}), | ||
], | ||
}); |