feat(src/djinit/utils): introduce use_vite flag handling
Add `use_vite` flag to metadata processing and include it in the development context dictionary. - New Feature: expose Vite integration flag - Enhancement: extend dev_context with use_vite value - No bug fixes
This commit is contained in:
1 file changed
+2
-1
@@ -46,9 +46,10 @@ class DjangoHelper:
|
||||
"database_type": metadata.get("database_type", "postgresql"),
|
||||
"use_tailwind": metadata.get("use_tailwind", False),
|
||||
"use_htmx": metadata.get("use_htmx", False),
|
||||
"use_vite": metadata.get("use_vite", False),
|
||||
}
|
||||
|
||||
dev_context = {"secret_key": secret_key}
|
||||
dev_context = {"secret_key": secret_key, "use_vite": metadata.get("use_vite", False)}
|
||||
|
||||
# Production context also needs database info
|
||||
prod_context = base_context.copy()
|
||||
|
||||
Reference in new issue
Block a user