File tree 1 file changed +1
-6
lines changed
packages/runtime/src/helpers
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ export const generateFunctions = async (
35
35
const publishDir = relative ( functionDir , publish )
36
36
37
37
for ( const { route, config, compiled } of apiRoutes ) {
38
- if ( config . type === undefined ) {
39
- // We're not generating a function for this route because it's not a background or scheduled function.
40
- continue
41
- }
42
-
43
38
const apiHandlerSource = await getApiHandler ( {
44
39
page : route ,
45
40
config,
@@ -215,7 +210,7 @@ export const warnOnApiRoutes = async ({
215
210
if ( functions . some ( ( func ) => func . schedule ) ) {
216
211
console . warn (
217
212
outdent `
218
- ${ chalk . yellowBright `Using scheduled API routes` }
213
+ ${ chalk . yellowBright `Using scheduled API routes` }
219
214
These are run on a schedule when deployed to production.
220
215
You can test them locally by loading them in your browser but this will not be available when deployed, and any returned value is ignored.
221
216
` ,
You can’t perform that action at this time.
0 commit comments