You should have received an invitation for NuxtHub repo. If not, please contact me.
Supersaas has first class support for NuxtHub. This means that you can deploy your site to NuxtHub in just a few clicks.
Head over to Supersaas Nuxthub and click on Use this template
Give it a name, set the visibility to private and create the repo on your account.
You will need these environment variables to run the site locally and deploy to Nuxthub.
Variable | Example Value | Description |
---|---|---|
BASE_URL | http://localhost:3000 | Your domain with the https:// prefix or http on local |
RPID | localhost | Your domain without the prefix |
FROM_EMAIL | [email protected] | The email address that will be used to send emails like password reset, magic link etc. |
EMAIL_PROVIDER | resend | The email provider that will be used to send emails |
PAYMENT_PROVIDER | stripe | The payment provider that will be used to process payments |
RESEND_API_KEY | Your_Resend_API_key | The API key for the email provider |
NUXT_SESSION_PASSWORD | 32 character random string | This is used to encrypt the session cookie |
NUXT_OAUTH_GITHUB_CLIENT_ID | The client ID for the GitHub OAuth provider | |
NUXT_OAUTH_GITHUB_CLIENT_SECRET | The client secret for the GitHub OAuth provider | |
NUXT_OAUTH_GOOGLE_CLIENT_ID | The client ID for the Google OAuth provider | |
NUXT_OAUTH_GOOGLE_CLIENT_SECRET | The client secret for the Google OAuth provider | |
STRIPE_SECRET_KEY | The secret key for the Stripe payment provider | |
STRIPE_WEBHOOK_SECRET | The webhook secret for the Stripe payment provider |
Head over to Nuxthub and make sure you have everything setup (Your cloudflare is linked). Now add click on the New Project button.
Choose "Import a Github repository" and select the repo you created in the previous step.
Once this is done, your project will be ready.
When your app goes live, you will see that there's a database but no tables. This is because the migrations are not run yet.
pnpm db:generate
to generate the migrations.npx nuxt dev --remote
locally, so the migrations get applied manually to Cloudflare D1export default defineNuxtConfig({
// ... other things
hub: {
kv: true,
database: true,
blob: true,
remote: true,
},
});
You now have a fully functional Supersaas site with all the features.