You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the differences between Vercel and Appwrite is how they handle domain configuration for apex domains. Vercel uses A records for apex domains, while Appwrite uses nameserver (NS) records. This means you'll need to delegate DNS management to Appwrite.
85
76
86
77
# Migrating an apex domain
87
78
88
-
Vercel uses A records for apex domains, while Appwrite uses nameserver (NS) records. This means you'll need to delegate DNS management to Appwrite.
89
-
90
79
{% section id="prepare-vercel-domain" step=1 title="Prepare your Vercel domain" %}
91
80
Before migrating, document your current Vercel DNS configuration:
92
81
@@ -185,10 +174,10 @@ Navigate to your site > **Settings** > **Build settings** and configure the foll
185
174
- **Rendering:** Select the appropriate rendering mode (Static or SSR)
Vercel allows setting custom headers at the platform level through `vercel.json`. Appwrite Sites supports custom headers through your framework's built-in configuration mechanisms.
For static sites without framework support, consider using client-side solutions or framework-specific configuration files if your static site generator supports them.
415
-
{% /section %}
416
-
417
364
# Migrate serverless functions
418
365
419
366
There are two approaches to serverless functions when migrating from Vercel to Appwrite:
420
367
421
368
{% info title="Framework API routes vs. standalone functions" %}
422
-
When using frameworks like Next.js, Nuxt, or SvelteKit with SSR enabled, your API routes will work natively within Appwrite Sites, just as they do in Vercel. For standalone serverless functions or more complex use cases, you can use Appwrite Functions as a separate service.
369
+
When using frameworks like Next.js, Nuxt, or SvelteKit with SSR enabled, your API routes will work natively within Appwrite Sites, just as they do in Vercel. For standalone serverless functions or more complex use cases, you can use [Appwrite Functions](/docs/functions).
423
370
{% /info %}
424
371
425
372
{% section id="framework-api-routes" step=1 title="Framework API routes" %}
@@ -440,15 +387,12 @@ For standalone serverless functions or more complex use cases:
440
387
3. Select a runtime that matches your needs (Node.js, Python, PHP, Ruby, etc.)
@@ -526,24 +470,13 @@ After completing your migration from Vercel to Appwrite Sites, we recommend:
526
470
527
471
1. **Test thoroughly** - Verify all routes, functionality, and environment-specific features
528
472
2. **Monitor performance** - Check that your site performs as expected on Appwrite
529
-
3. **Set up CI/CD** - Configure automatic deployments from your repository
530
-
4. **Explore Appwrite services** - Consider integrating with other Appwrite services like Authentication, Databases, and Storage
531
-
532
-
# Timeouts
533
-
534
-
Vercel has a default build timeout of 45 minutes. Appwrite Sites has a default request timeout of 15 seconds (max 30 seconds) for runtime requests, which is configurable.
535
-
536
-
To configure the timeout for runtime requests in Appwrite:
537
-
538
-
1. Navigate to your site > **Settings** > **Timeout**
539
-
2. Set an appropriate time limit (in seconds, max 30)
540
-
541
-
For build processes, Appwrite Sites provides ample time for your builds to complete. Pro+ users benefit from express builds for quicker deployments and reduced wait times.
473
+
3. **Set up CI/CD** - Appwrite already provides git integration and deployment workflows, but you can also use GitHub Actions or any other CI/CD tool to automate your deployments.
474
+
4. **Explore Appwrite services** - Consider integrating with other Appwrite services like [Authentication](/docs/products/auth), [Databases](/docs/products/databases), and [Storage](/docs/products/storage)
542
475
543
476
# Conclusion
544
477
545
478
This guide has outlined the key steps for migrating from Vercel to Appwrite Sites. You'll find that Git integration and deployment workflows remain largely familiar, making these aspects of migration more approachable for most projects.
546
479
547
480
While domain configuration and platform-specific features like middleware require some adaptation, the framework-native approaches detailed in this guide help ensure a smooth transition.
548
481
549
-
For additional help, refer to the [Appwrite documentation](/docs/products/sites) or reach out to the [Appwrite community](https://appwrite.io/discord).
482
+
For additional help, refer to the [Sites documentation](/docs/products/sites) or reach out to the Appwrite community on [Discord](https://appwrite.io/discord).
0 commit comments