Go Live at Turbo Speed
Deploy your application
At the end of this tutorial, you’ll have a brand new productive application!
Hey! Congratulations on your brand new application 👏, i’ll gladly help you making it online.
We strongly recommend vercel for deploying your project. You can also go to a self-hosted strategy, but will need a lot of work to make things works properly.
Step by step
- Login into your Vercel Account with your preferred authentication method.
- Click the “New Project” button.
- Select your TurboStack project.
- Select
/apps/web
as root directory of your project.
- Set up your environment variables.
Here’s a table with all the variables you can set (you can check your .env.example
and .env.local
either):
Key | Value |
---|---|
NEXTAUTH_URL | Your productive app subdomain (e.g https://app.myapp.com) |
NEXTAUTH_SECRET | Your NextAuth secret (add a secret with at least 32 characters long) |
NEXT_PUBLIC_APP_DOMAIN | Your productive app subdomain (e.g https://app.myapp.com) |
DATABASE_URL | Your productive database url |
RESEND_API_KEY | Your Resend API Key |
RESEND_AUDIENCE_ID | Your Resend Audience ID to Collect Emails |
GOOGLE_CLIENT_ID | Your Google OAuth Client ID |
GOOGLE_CLIENT_SECRET | Your Google OAuth Client Secret |
NEXT_PUBLIC_STRIPE_PB_KEY | Your Stripe Public Key |
STRIPE_SECRET_KEY | Your Stripe Secret Key |
STRIPE_WEBHOOK_SECRET | Your Stripe Webhook Signing Secret |
UPSTASH_REDIS_REST_URL | Your Upstash Redis Database URL |
UPSTASH_REDIS_REST_TOKEN | Your Upstash Redis Authentication Token |
- Click “Deploy” button and wait until the magic happens!
Add your Domain
- Go to Vercel’s “Dashboard Page” and pick the project you created before.
- Navigate to Settings > Domains page.
- From Domains page, create two domains, one for your marketing page, and one for your application page. If your host are
myapp.com
, then createmyapp.com
andapp.myapp.com
.
- After that, you will have a brand new domain, but non-productive yet. You’ll need to setup your DNS Records to make your Registrar points your domain to Vercel’s created domain:
Configuring your DNS
- Proceed to your domain’s DNS settings on your domain provider.
- Create two new DNS entries, with the following values:
Type | Name | Value |
---|---|---|
A | @ | 76.76.21.21 |
CNAME | app | cname.vercel-dns.com. |
- If your DNS Records were properly configured, you’ll notice a change in your domain’s status, making it available to the internet.
- Open your brand new domain and see your page online.
Conclusion
Now you can share with your friends and family đź‘Ź, congratulations on your brand new app!
I want to showcase your application in TurboStack Home Page, you can send me an email with the subject Showcase my app - {{APP_NAME}}
I wish the best of luck to your new app.
Cheers!
Vitor