Skip to content

Commit 9ec8688

Browse files
committed
Revert "fix: unsplit some routes to decrease build times"
This reverts commit 3ba3160.
1 parent 3ba3160 commit 9ec8688

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/runtime/src/helpers/functions.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ export const generateFunctions = async (
3535
const publishDir = relative(functionDir, publish)
3636

3737
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-
4338
const apiHandlerSource = await getApiHandler({
4439
page: route,
4540
config,
@@ -215,7 +210,7 @@ export const warnOnApiRoutes = async ({
215210
if (functions.some((func) => func.schedule)) {
216211
console.warn(
217212
outdent`
218-
${chalk.yellowBright`Using scheduled API routes`}
213+
${chalk.yellowBright`Using scheduled API routes`}
219214
These are run on a schedule when deployed to production.
220215
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.
221216
`,

0 commit comments

Comments
 (0)