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
'Navigating to a lesson that specifies autoReload will always reload the preview. This is typically only needed if your server does not support HMR.',
171
171
),
172
172
template: z
173
-
.string()
174
-
.optional()
173
+
.union([
174
+
// name of the template
175
+
z.string().optional(),
176
+
177
+
z.strictObject({
178
+
// name of the template
179
+
name: z.string(),
180
+
}),
181
+
])
175
182
.describe(
176
183
'Specifies which folder from the `src/templates/` directory should be used as the basis for the code. See the "Code templates" guide for a detailed explainer.',
0 commit comments