diff --git a/apps/payments/next/app/%5F_version__/route.ts b/apps/payments/next/app/%5F_version__/route.ts new file mode 100644 index 00000000000..b68472412f7 --- /dev/null +++ b/apps/payments/next/app/%5F_version__/route.ts @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import { NextResponse } from 'next/server'; +import { version } from '../../package.json'; + +export const dynamic = 'force-dynamic'; + +export async function GET(request: Request) { + return NextResponse.json({ body: { version } }); +}