set NIGHTLY=true when under dev environment

This commit is contained in:
pa
2026-01-07 20:53:05 +09:00
committed by Natsumi
parent 85c0d7d3c2
commit cf2469698c

View File

@@ -61,7 +61,8 @@ export default defineConfig(({ mode }) => {
.readFileSync(new URL('../Version', import.meta.url), 'utf-8')
.trim();
const nightly = version.split('-').at(-1).length === 7;
const nightly =
mode === 'development' || version.split('-').at(-1).length === 7;
return {
base: '',