#Multi tenancy with astro
3 messages · Page 1 of 1 (latest)
Hi @olive robin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but the information extracts provided do not contain specific details on how to create a multi-tenant application with Astro or how to use the Vercel domain API for routing for subdomains. They also do not provide information on how to allow users to connect their own domain.
However, I can guide you on how to deploy your Astro application on Vercel and how to configure it for server-side rendering (SSR) using the Vercel adapter.
- Install the Vercel CLI and run
vercelto deploy your Astro application. Vercel will automatically detect Astro and configure the right settings. When askedWant to override the settings? **y/N], chooseN. Your application will then be deployed. [source** (https://docs.astro.build/en/guides/deploy/vercel)
npm install -g vercel
vercel
- To enable SSR in your Astro project, add the Vercel adapter using the
astro addcommand. This will install the adapter and make the appropriate changes to yourastro.config.mjsfile. source (https://docs.astro.build/en/guides/integrations-guide/vercel)
npx astro add vercel
- If you prefer to install the adapter manually, you can do so by installing the
@astrojs/verceladapter and adding two new lines to yourastro.config.mjsproject configuration file. source (https://docs.astro.build/en/guides/deploy/vercel)
npm install @astrojs/vercel
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
output: 'server',
adapter: vercel(),
});