Skip to content
Back to catalog
Onelink

Deploy Onelink with Sites

Deploy a Nuxt link-in-bio page on Appwrite Sites

Onelink is an experimental link-in-bio page built with Nuxt and Tailwind CSS. It shows a profile photo, a name, a row of social icons, and a list of links with icons, in light and dark modes. The upstream project encodes the whole profile in the page URL. The Appwrite template keeps the profile in your code instead, so you edit one object and redeploy.

How does the integration work?

Appwrite Sites includes Onelink in its template library. When you create a site from the template, Appwrite runs nuxt generate on the template from the appwrite/templates-for-sites repository and serves the generated page as a static site on an Appwrite domain. If you connect a repository, every push to the production branch publishes your changes.

Appwrite applies these build settings to the template:

SettingValue
FrameworkNuxt
Install commandnpm install
Build commandnpm run generate
Output directory./dist
RenderingStatic

How to implement

To deploy Onelink with Appwrite Sites, there are several steps you must complete:

Step 1: Create a site from the template

For this step, you must create an account on Appwrite Cloud or self-host Appwrite if you haven't already. In your Appwrite project, go to Sites and click Create site. Search the templates for Onelink and select it.

Enter a Site name and a Site ID, then choose how to manage the code:

  • Connect your repository creates a new repository from the template with your Git provider, such as GitHub, or connects one you already have, and redeploys on every push to the production branch. Choose this so you can add your own profile.
  • Connect later deploys the template as it is. You can connect a repository afterwards from the site's Settings > Git repository.

Pick a subdomain under Domain and click Deploy. You can follow the build logs in the Console, and the site goes live on that domain when the build succeeds.

Step 2: Add your profile

Clone the repository and open pages/index.vue. The page renders the account object, so replace the sample values with your own:

  • name, description, and photo, the URL of your profile picture.
  • The social fields: facebook, twitter, instagram, email, github, telegram, phone, youtube, and linkedin. Each one adds an icon, so remove the fields you don't use.
  • links: the buttons under your profile, each with a title, a url, and an icon.

components/Homepage.vue only renders the description when acc.d is set, so change that v-if to acc.description if you want your description to appear.

JavaScript
links: [
{
title: "My Website",
icon: "ph:globe-duotone",
url: "https://example.com",
},
],

Icons are Iconify names, such as ph:globe-duotone, rendered by the nuxt-icon module. Commit and push to the production branch to publish the change.

Step 3: Add a custom domain

Open your site's Domains tab to serve the page from your own domain. Follow Add a custom domain for the DNS records to create.

If you would like to learn more about Onelink and Appwrite Sites, we have some resources that you should visit:

Technology Partner Program

Building on Appwrite?

Teams and developers who ship integrations, tools, or services on Appwrite can join our partner program for verified catalog placement, co-marketing, training, and engineering support.