feat: upgrade api/v1 and example apps to Next.js 16.1.0 (#26104)
* feat: upgrade api/v1 and example apps to Next.js 16.1.0 - Update apps/api/v1 to Next.js 16.1.0 - Rename middleware.ts to proxy.ts per Next.js 16 migration - Add turbopack config to next.config.js - Update packages/platform/examples/base to Next.js 16.1.0 - Add eslint-disable to config files (following apps/web pattern) Co-Authored-By: Volnei Munhoz <[email protected]> * chore: update yarn.lock for Next.js 16.1.0 upgrade Co-Authored-By: Volnei Munhoz <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
6 files changed
+15
-410
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable */
|
||||
const { withAxiom } = require("next-axiom");
|
||||
const { withSentryConfig } = require("@sentry/nextjs");
|
||||
const { PrismaPlugin } = require("@prisma/nextjs-monorepo-workaround-plugin");
|
||||
@@ -6,6 +7,7 @@ const plugins = [withAxiom];
|
||||
|
||||
/** @type {import("next").NextConfig} */
|
||||
const nextConfig = {
|
||||
turbopack: {},
|
||||
transpilePackages: [
|
||||
"@calcom/app-store",
|
||||
"@calcom/dayjs",
|
||||
@@ -94,7 +96,7 @@ const nextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||
plugins.push((nextConfig) =>
|
||||
withSentryConfig(nextConfig, {
|
||||
autoInstrumentServerFunctions: true,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"@sentry/nextjs": "^9.15.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"memory-cache": "^0.2.0",
|
||||
"next": "15.4.10",
|
||||
"next": "16.1.0",
|
||||
"next-api-middleware": "^1.0.1",
|
||||
"next-axiom": "^0.17.0",
|
||||
"next-swagger-doc": "^0.3.6",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { NextRequest } from "next/server";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
export function middleware(_request: NextRequest) {
|
||||
function proxy(_request: NextRequest) {
|
||||
// Matcher guarantees the last segment is one of the blocked segments, so we can
|
||||
// immediately return a 403 without further path checks.
|
||||
return NextResponse.json({ message: "Forbidden" }, { status: 403 });
|
||||
@@ -17,3 +17,5 @@ export const config = {
|
||||
"/:path*/_auth-middleware",
|
||||
],
|
||||
};
|
||||
|
||||
export default proxy;
|
||||
Reference in new issue
Block a user