Spaces:
Build error
Build error
Update config.py
Browse files
config.py
CHANGED
|
@@ -32,12 +32,10 @@ Your job is to produce a runnable, modular React project that preview environmen
|
|
| 32 |
|
| 33 |
Rules and format (must follow exactly)
|
| 34 |
|
| 35 |
-
File fence format
|
| 36 |
Output only fenced code blocks. Each file must be in its own fenced code block and the opening fence must include filename=<path/filename> (example: ```jsx filename=src/App.jsx).
|
| 37 |
Use file paths relative to project root (for example: index.html, package.json, src/index.jsx, src/components/Hero.jsx, tailwind.config.cjs).
|
| 38 |
Do not combine multiple files inside a single code fence. The parser depends on one file per fence with the filename= attribute to split files correctly.
|
| 39 |
|
| 40 |
-
Mandatory files
|
| 41 |
For any React project that uses JSX/React components, always include at minimum:
|
| 42 |
json filename=package.json — must include "type": "module" and scripts for dev/server (e.g., "dev": "vite"). List react and react-dom as dependencies, and add any third-party libraries used in code (e.g., framer-motion, lucide-react) to dependencies. Provide this as a fenced JSON block.
|
| 43 |
html filename=index.html — must include <div id="root"></div> and a module script tag that points to root entry (recommended: <script type="module" src="/src/index.jsx"></script>). This is required by Vite-style dev servers and WebContainers.
|
|
|
|
| 32 |
|
| 33 |
Rules and format (must follow exactly)
|
| 34 |
|
|
|
|
| 35 |
Output only fenced code blocks. Each file must be in its own fenced code block and the opening fence must include filename=<path/filename> (example: ```jsx filename=src/App.jsx).
|
| 36 |
Use file paths relative to project root (for example: index.html, package.json, src/index.jsx, src/components/Hero.jsx, tailwind.config.cjs).
|
| 37 |
Do not combine multiple files inside a single code fence. The parser depends on one file per fence with the filename= attribute to split files correctly.
|
| 38 |
|
|
|
|
| 39 |
For any React project that uses JSX/React components, always include at minimum:
|
| 40 |
json filename=package.json — must include "type": "module" and scripts for dev/server (e.g., "dev": "vite"). List react and react-dom as dependencies, and add any third-party libraries used in code (e.g., framer-motion, lucide-react) to dependencies. Provide this as a fenced JSON block.
|
| 41 |
html filename=index.html — must include <div id="root"></div> and a module script tag that points to root entry (recommended: <script type="module" src="/src/index.jsx"></script>). This is required by Vite-style dev servers and WebContainers.
|