Serverless Functions for Website (Vercel Functions)

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1212
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Serverless Functions Development for Websites (Vercel Functions)

Vercel Functions are server functions deployed alongside a static website or Next.js application. No infrastructure: push to git → function is available at /api/....

How Vercel Functions Work

Files in the api/ directory (for Vite/SPA) or app/api/ (for Next.js App Router) automatically become server endpoints. Supports Node.js, Edge Runtime, Python, Ruby, Go.

Example: Contact Form Function

File api/contact.ts:

import type { VercelRequest, VercelResponse } from "@vercel/node";
import { Resend } from "resend";

const resend = new Resend(process.env.RESEND_API_KEY);

export default async function handler(req: VercelRequest, res: VercelResponse) {
  if (req.method !== "POST") {
    return res.status(405).json({ error: "Method not allowed" });
  }

  const { name, email, message } = req.body;

  if (!name || !email || !message) {
    return res.status(400).json({ error: "Missing fields" });
  }

  await resend.emails.send({
    from: "[email protected]",
    to: "[email protected]",
    subject: `New message from ${name}`,
    text: `From: ${name} <${email}>\n\n${message}`,
  });

  return res.status(200).json({ ok: true });
}

The function is available at https://your-site.vercel.app/api/contact.

Next.js App Router API Routes

// app/api/newsletter/route.ts
import { NextRequest, NextResponse } from "next/server";

export async function POST(request: NextRequest) {
  const { email } = await request.json();

  // Add to Mailchimp/SendGrid
  const response = await fetch("https://api.mailchimp.com/3.0/lists/LIST_ID/members", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.MAILCHIMP_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ email_address: email, status: "subscribed" }),
  });

  if (!response.ok) {
    return NextResponse.json({ error: "Subscription failed" }, { status: 400 });
  }

  return NextResponse.json({ ok: true });
}

Environment Variables

In Vercel Dashboard → Settings → Environment Variables. For local development — .env.local:

RESEND_API_KEY=re_...
DATABASE_URL=postgresql://...

Vercel automatically doesn't pass variables with NEXT_PUBLIC_ to the server — only to the client. Don't add server secrets with this prefix.

Free Plan Limits

  • Maximum execution time: 10 seconds (Hobby), 60 seconds (Pro)
  • Response size: 5 MB
  • 100 GB-hours of execution per month
  • Regions: one region on Hobby, all regions on Pro

For most websites, the Hobby plan is sufficient.

Timeframe

Basic API functions (form, subscription, webhook) — 1–2 days, including deployment and environment variable configuration.