mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 20:31:16 +02:00
25 lines
679 B
TypeScript
25 lines
679 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as Cloudflare from "alchemy/Cloudflare";
|
|
import * as Effect from "effect/Effect";
|
|
|
|
export default Alchemy.Stack(
|
|
"CloudflareVueExample",
|
|
{
|
|
providers: Cloudflare.providers(),
|
|
state: Cloudflare.state(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const worker = yield* Cloudflare.Website.Vite("Vue", {
|
|
// vue-router runs in history mode, so deep links like /about must
|
|
// fall back to index.html for the client router to resolve them.
|
|
assets: {
|
|
htmlHandling: "auto-trailing-slash",
|
|
notFoundHandling: "single-page-application",
|
|
},
|
|
});
|
|
|
|
return {
|
|
url: worker.url,
|
|
};
|
|
}),
|
|
);
|