Adding Vercel og:image generation to Astro project with Edge functions

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • website-thomas-astro

  • Hopefully this helps other people wanting to use serverless/edge API functions in their Astro projects. Source code can be found here.

  • vercel-action

    This action make a deployment with github actions instead of Vercel builder.

  • Now, I want the API route to be picked up by Vercel. By default the Astro build command will not pick up these API routes in the root directory (since they are part of the (vercel build command)[https://github.com/withastro/astro/issues/5451#issuecomment-1339720682]). So to get this working in my use case, I switched to using the (Vercel CLI)[https://vercel.com/docs/cli] to build and deploy my project. After installing the cli globally with npm i -g vercel, I can run vercel build to build my project locally, and run vercel deploy --prebuilt afterwards to deploy the locally created build directly to Vercel. I also opted to disable the automatic deployments on pushes to my git repository, since I'm doing the deployments through the CLI now. Disabling the automatic deployments was done by adding a vercel.json file in the root directory, containing the following:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Deploy a Django app with PostgreSQL database on Vercel

    2 projects | dev.to | 15 Aug 2023
  • Let's give recognition to those supporting our work on GitHub Sponsors.

    5 projects | dev.to | 9 Feb 2023
  • Batch to add / remove environment variables by Vercel CLI

    1 project | dev.to | 15 Dec 2022
  • Vercel preview deployments strange behavior using Next

    1 project | /r/nextjs | 23 Mar 2022
  • URL shortening using CLI

    3 projects | dev.to | 15 Apr 2024