Skip to content

Commit

Permalink
partytracks fixture on vite
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Feb 12, 2025
1 parent 734e281 commit 817540e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
<body>
<video muted autoplay id="local-video"></video>
<video muted autoplay id="remote-video"></video>
<script type="module" src="/dist/index.js"></script>
<script type="module" src="/src/client/index.tsx"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion fixtures/partytracks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "@partyserver/fixture-partytracks",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "wrangler dev"
"start": "vite dev"
},
"dependencies": {
"hono": "^4.7.0",
Expand Down
Binary file added fixtures/partytracks/public/favicon.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions fixtures/partytracks/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { cloudflare } from "@cloudflare/vite-plugin";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({ plugins: [cloudflare(), react()] });
5 changes: 0 additions & 5 deletions fixtures/partytracks/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@ main = "src/server/index.ts"
compatibility_date = "2024-04-19"

assets = {directory = "./public"}

[build]
command = "npx esbuild src/client/index.tsx --bundle --outdir=public/dist --splitting --sourcemap --format=esm"


0 comments on commit 817540e

Please sign in to comment.