Skip to content

Commit cb70bee

Browse files
robelestclaude
andcommitted
fix(examples/sveltekit): use node provider with bun install
Railpack doesn't have a bun provider, but we can use node provider and override the install command to use bun. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 49476a0 commit cb70bee

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/sveltekit/railpack.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/sveltekit/src/convex/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { query } from "./_generated/server";
66
import { betterAuth } from "better-auth/minimal";
77
import authConfig from "./auth.config";
88

9-
const siteUrl = process.env.SITE_URL!;
9+
const siteUrl = process.env.PUBLIC_CONVEX_SITE_URL!;
1010

1111
export const authComponent = createClient<DataModel>(components.betterAuth);
1212

examples/sveltekit/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default defineConfig({
1717
},
1818
resolve: {
1919
dedupe: ["yjs", "lib0", "y-protocols"],
20+
alias: {
21+
// Stub the worker import during SSR (Node.js can't handle ?worker suffix)
22+
"@trestleinc/replicate/worker?worker": "@trestleinc/replicate/worker",
23+
},
2024
},
2125
server: {
2226
headers: {

0 commit comments

Comments
 (0)