Closed shikharr-ag closed 1 month ago
Hi @shikharr-ag 👋 Thanks for opening this issue! We love seeing Dart Frog expanding to other services for deployment.
In doing some research into Vercel, as we don't have a current use case for this internally at VGV, it seems that an API server isn't really what they are looking to have in their deployments. Typically any request we have for getting Dart Frog deployed somewhere starts with looking for Docker support as that's the quick and easy way in. According to Vercel's documentation, they don't support Docker deployments at all.
Given this I'm going to close this issue out as a won't fix as I don't see a path forward on getting this ask completed. In the past we have seen other community members figure out how to do deployments on other services and contribute back the documentation, a perfect example is our DigitalOcean deployment docs. If you have an interest in continuing to investigate this and open a PR with the needed documentation we would be happy to review it and get it published in our docs.
Description
Feature Request: Deployment Support for Dart Frog on Vercel
Issue: Dart Frog provides a suite of options for direct deployment, but it currently does not support Vercel. Additionally, there is a lack of documentation or solutions for deploying a Dart Frog server to Vercel.
Current Approach: After researching Flutter Web deployment on Vercel, I created the necessary commands to execute dart_frog build in Vercel. However, this approach does not seem to work as expected.
Deployment Commands for Vercel:
Install Command:
if cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git; fi && ls && flutter/bin/dart pub global activate dart_frog_cli && flutter/bin/dart pub get && mv ~/.pub-cache/bin/dart_frog /vercel/path0/flutter/bin/
Build Command:
PATH=/vercel/path0/flutter/bin:"$PATH" && dart_frog build
Output Path:
/build/bin
Request: Please add support for Dart Frog deployments to Vercel and provide guidance or solutions for the same.
PS: I also tried creating an executable from the server.dart file using the following command but to no avail.
Build Command
PATH=/vercel/path0/flutter/bin:"$PATH" && dart_frog build && dart compile exe build/bin/server.dart -o build/bin/server
Requirements
Additional Context
Please excuse any discrepancies in my description, this is my first feature request.