Reset the start command from the framework select, not the effect

The effect is skipped whenever the URL supplied any command, so a deploy
link carrying ?start= kept that entrypoint through a framework switch.
Resetting inside the effect could not fix it either: the effect also runs
on load, where the URL value has to survive.

Move the reset onto the select, so only a user changing framework clears
it and the link keeps working as written.
This commit is contained in:
harsh mahajan committed 2026-08-14 11:17:34 +05:30
1 parent a175d022e2
commit 58b37773f3
1 file changed
+2 -2
@@ -94,7 +94,6 @@
installCommand = adapter.installCommand || '';
buildCommand = adapter.buildCommand || '';
outputDirectory = adapter.outputDirectory || '';
startCommand = '';
}
}
});
@@ -262,7 +261,8 @@
label="Framework"
placeholder="Select framework"
bind:value={framework}
options={frameworkSelectOptions} />
options={frameworkSelectOptions}
on:change={() => (startCommand = '')} />
</Layout.Stack>
</Fieldset>