Skip to content

Commit

Permalink
Update superflare dev to also run wrangler dev
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Aug 15, 2024
1 parent 5e8b590 commit 602249d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/superflare/cli/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export async function devHandler(
const isWorkersMode = !isPagesMode;

logger.info(
`Starting dev server in ${isPagesMode ? "pages" : "workers"} mode...`
`Starting "wrangler" and ViteDevServer in ${
isPagesMode ? "pages" : "workers"
} mode...`
);

const config = await getSuperflareConfig(process.cwd(), logger);
Expand Down Expand Up @@ -82,6 +84,12 @@ export async function devHandler(
process.exit(1);
}

spawn("npx", ["wrangler", "dev", "-j"], {
stdio: "inherit",
shell: true,
env: process.env,
});

spawn("npx", ["remix", "vite:dev"], {
stdio: "inherit",
shell: true,
Expand Down

0 comments on commit 602249d

Please sign in to comment.