Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created support for Vercel using Node.js runtime #492

Open
wants to merge 8 commits into
base: vercel-nodejs
Choose a base branch
from

Conversation

Chingles2404
Copy link
Contributor

Created the IOVercel file. Thanks Arman and Tonio for your help!

@Chingles2404 Chingles2404 marked this pull request as ready for review June 18, 2024 11:45
@Chingles2404
Copy link
Contributor Author

Based on discussions with Arman, it seems like Vercel is not compatible with the Http4s way of creating a web app. This is mainly due to routes being declared via the folder structure for web apps that are deployed to Vercel. Therefore, the example illustrated in VercelNodejs.scala is unable to work with Vercel.

The current steps to use Feral with Vercel are:

  1. Write a handler for a specific route
  2. Run fastLinkJS to generate the corresponding JS files
  3. Copy the JS files into a folder named api which should ideally be in a separate project folder
  4. Rename the JS files (and optionally put them in subfolders within api) to define the route
  5. Deploy the project to Vercel

References:
https://vercel.com/docs/functions/runtimes/node-js
https://github.com/orgs/vercel/discussions/947

@armanbilge armanbilge linked an issue Jul 9, 2024 that may be closed by this pull request
@armanbilge armanbilge mentioned this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Vercel
1 participant