fastn
comes with a lot of dynamic features, which are only available when you
are using fastn server for hosting.fastn
projects to Vercelvercel.json
to the root of your project (right where your FASTN.ftd lives) with the following contents:{
"framework": null,
"buildCommand": "fastn build --base=/",
"outputDirectory": ".build",
"installCommand": "curl -fsSL https://fastn.com/install.sh | sh"
}
fastn
project and deploy it on VercelWe recommend using our template repository
fastn-template to create a
new fastn
project.
Use this template
buttonFollow the instruction to create a new Github repository from this template.
Wait for the Github Action to finish running. This Action renames package
name in FASTN.ftd
to match with your repository name and your Github
username.
We'll be opting for a different deployment method instead of using GitHub
Pages. Feel free to delete the .github
folder to eliminate
these GitHub Actions from your repository.
Now create a new Vercel deployment by importing this repository.
fastn
project from scratch using fastn create-package <your-package-name>
. Follow the instructions above to add a vercel.json file.