Skip to content

Commit a7a019f

Browse files
authored
fix: remove vercel route configs (#5355)
These official documented route configs started to wipe whole builder. We should migrate away from vercel ASAP.
1 parent 0960101 commit a7a019f

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

apps/builder/app/routes/_canvas.canvas.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,3 @@ const CanvasRoute = () => {
3838
};
3939

4040
export default CanvasRoute;
41-
42-
// Reduces Vercel function size from 29MB to 9MB for unknown reasons; effective when used in limited files.
43-
export const config = {
44-
maxDuration: 30,
45-
};

apps/builder/app/routes/_ui.(builder).tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,3 @@ export const shouldRevalidate: ShouldRevalidateFunction = ({
293293
};
294294

295295
export default BuilderRoute;
296-
297-
// Reduces Vercel function size from 29MB to 9MB for unknown reasons; effective when used in limited files.
298-
export const config = {
299-
maxDuration: 30,
300-
};

apps/builder/app/routes/_ui.login._index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,3 @@ const LoginRoute = () => {
111111
};
112112

113113
export default LoginRoute;
114-
115-
// Reduces Vercel function size from 29MB to 9MB for unknown reasons; effective when used in limited files.
116-
export const config = {
117-
maxDuration: 30,
118-
};

apps/builder/app/routes/rest.patch.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,3 @@ export const action = async ({
453453
};
454454
}
455455
};
456-
457-
// Reduces Vercel function size from 29MB to 9MB for unknown reasons; effective when used in limited files.
458-
export const config = {
459-
maxDuration: 30, // seconds
460-
};

0 commit comments

Comments
 (0)