Skip to content

Commit

Permalink
fix tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Jan 15, 2025
1 parent 597c6a7 commit c3faed8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cloudflare/tsconfig.cloudflare.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"app/**/*",
"app/**/.server/**/*",
"app/**/.client/**/*",
"workers/**/*"
"workers/**/*",
"worker-configuration.d.ts"
],
"compilerOptions": {
"composite": true,
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { reactRouter } from "@react-router/dev/vite";
import { cloudflareDevProxy } from '@react-router/dev/vite/cloudflare'
import { cloudflareDevProxy } from "@react-router/dev/vite/cloudflare";
import autoprefixer from "autoprefixer";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/workers/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "../worker-configuration"
import { createRequestHandler } from "react-router";

declare global {
Expand All @@ -22,6 +21,7 @@ const requestHandler = createRequestHandler(

export default {
fetch(request, env, ctx) {
console.log("yo");
return requestHandler(request, {
cloudflare: { env, ctx },
});
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
workers_dev = true
name = "my-worker"
name = "my-react-router-worker"
compatibility_date = "2024-11-18"
main = "./build/server/index.js"
assets = { directory = "./build/client/" }
Expand Down

0 comments on commit c3faed8

Please sign in to comment.