You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nextjs-web-app/src/app/api/generate/route.ts
+25-6Lines changed: 25 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -105,12 +105,31 @@ Additional Notes:
105
105
106
106
Format the code with proper indentation and spacing for readability.`;
107
107
}else{
108
-
fullPrompt=`Create a well-structured, modern web application:
109
-
110
-
Instructions:
111
-
1. Base functionality: ${prompt}
112
-
2. Variation: ${variation}
113
-
3. Framework: ${frameworkInstructions}
108
+
fullPrompt=`Create a well-structured, modern web application based on the specific requirements below:
109
+
110
+
CORE FUNCTIONALITY REQUEST:
111
+
${prompt}
112
+
113
+
IMPORTANT: Interpret the request literally and specifically. Do not default to generic patterns like to-do lists unless explicitly requested. Be creative and think about what the user actually wants.
114
+
115
+
VARIATION INSTRUCTIONS:
116
+
${variation}
117
+
118
+
FRAMEWORK REQUIREMENTS:
119
+
${frameworkInstructions}
120
+
121
+
CREATIVE INTERPRETATION GUIDELINES:
122
+
- If the request mentions "organize" or "productivity", consider alternatives to to-do lists such as:
123
+
* Calendar/scheduling apps
124
+
* Dashboard with widgets
125
+
* Time tracking applications
126
+
* Habit tracking systems
127
+
* Note-taking or journaling apps
128
+
* Project management boards
129
+
* Goal setting interfaces
130
+
- Focus on the specific domain or context mentioned in the request
131
+
- Add unique features that make the application interesting and functional
132
+
- Think about what would genuinely solve the user's stated problem
114
133
115
134
Technical Requirements:
116
135
- Create a single HTML file with clean, indented code structure
0 commit comments