···11+import type { Config } from "@react-router/dev/config";
22+33+export default {
44+ // Config options...
55+ // Server-side render by default, to enable SPA mode set this to `false`
66+ ssr: true,
77+} satisfies Config;
···11import { useActionState, useContext } from "react";
22-import { Run } from "../../shared/run_lexicon.ts";
33-import { ATProtoContext } from "../context.tsx";
22+import { type Run } from "../shared/run_lexicon";
33+import { ATProtoContext } from "../shared/context";
44import { type BlobRef } from "@atproto/api";
5566export function RunForm() {
···11-import { defineConfig } from "vite";
22-import react from "@vitejs/plugin-react";
33-44-import { cloudflare } from "@cloudflare/vite-plugin";
11+import { reactRouter } from "@react-router/dev/vite";
52import tailwindcss from "@tailwindcss/vite";
33+import { defineConfig } from "vite";
44+import tsconfigPaths from "vite-tsconfig-paths";
6577-// https://vite.dev/config/
86export default defineConfig({
99- plugins: [react(), cloudflare(), tailwindcss()],
1010- server: {
1111- allowedHosts: [
1212- "currency-houston-arranged-scotia.trycloudflare.com",
1313- ],
1414- },
77+ plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
158});
-5
worker-configuration.d.ts
···11-// Generated by Wrangler
22-// After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
33-interface Env {
44- ASSETS: Fetcher;
55-}