Skip to content

Commit

Permalink
add polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
sngmn451 committed Jul 24, 2024
1 parent dba5bab commit 4073912
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 652 deletions.
4 changes: 2 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import react from "@astrojs/react"
import { TanStackRouterVite } from "@tanstack/router-plugin/vite"
import tailwind from "@astrojs/tailwind"
import cloudflare from "@astrojs/cloudflare"
import vpc from "vite-plugin-cloudflare"
import { nodePolyfills } from "vite-plugin-node-polyfills"

// https://astro.build/config
export default defineConfig({
Expand All @@ -24,7 +24,7 @@ export default defineConfig({
quoteStyle: "double",
semicolons: false,
}),
vpc({ scriptPath: "./worker/index.ts" }),
nodePolyfills(),
],
resolve: {
alias: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
"drizzle-kit": "^0.23.0",
"esbuild": "^0.23.0",
"tsx": "^4.16.2",
"vite-plugin-cloudflare": "^0.4.1"
"vite-plugin-node-polyfills": "^0.22.0"
}
}
Loading

0 comments on commit 4073912

Please sign in to comment.