Skip to content

Commit 558a6af

Browse files
author
TomArt
committed
on command dev refresh server when .graphql file is edited
1 parent 9d5fb36 commit 558a6af

File tree

1 file changed

+1
-1
lines changed
  • packages/cli/src/commands/common

1 file changed

+1
-1
lines changed

packages/cli/src/commands/common/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const CommandDev = async () => {
2626
});
2727
const fileServer = fs.watch(process.cwd(), (e, f) => {
2828
if (changingFile) return;
29-
if (f === STUCCO_FILE || f.startsWith('.env')) {
29+
if (f === STUCCO_FILE || f.startsWith('.env') || f.endsWith('.graphql')) {
3030
const envFile = getEnvFile();
3131
changingFile = true;
3232
onCreateStucco({

0 commit comments

Comments
 (0)