Skip to content

Commit 713201e

Browse files
authored
Merge pull request #102 from MarkCay/main
Add Firebase setup guide and SVG icon
2 parents aff7c45 + b0a810d commit 713201e

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

src/guides/firebase.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
order: 1350
3+
icon: /media/firebase.svg
4+
label: Firebase
5+
tags: guides
6+
---
7+
8+
# Setting up Firebase Hosting with an is-a.dev Subdomain
9+
10+
This guide will walk you through the process of setting up a Firebase Hosting site and pointing your is-a.dev subdomain towards it.
11+
12+
## Creating a Firebase Project
13+
14+
First, create a Firebase project and set up Firebase Hosting. Follow the instructions in the [Firebase Hosting Documentation](https://firebase.google.com/docs/hosting/quickstart).
15+
16+
### Setting up Firebase Hosting
17+
18+
1. Install the Firebase CLI: `npm install -g firebase-tools`
19+
2. Initialize Firebase in your project directory: `firebase init hosting`
20+
3. Deploy your site: `firebase deploy`
21+
22+
### Creating the Domain File
23+
24+
Create a JSON file inside the `domains` directory (`domains/subdomain.json`) with the following content and submit a pull request:
25+
26+
```json
27+
{
28+
"owner": {
29+
"username": "github-username",
30+
"email": "[email protected]"
31+
},
32+
"records": {
33+
"CNAME": "your-firebase-site.web.app"
34+
}
35+
}
36+
```
37+
38+
Make sure to replace:
39+
40+
- `github-username` with your actual GitHub username
41+
- `[email protected]` with your email address
42+
- `your-firebase-site.web.app` with your hosting site
43+
44+
### Configuring Firebase Hosting for Custom Domain
45+
46+
After your pull request is merged and your is-a.dev subdomain is active:
47+
48+
1. Go to your Firebase Console
49+
2. Navigate to **Hosting** in the left sidebar
50+
3. Click **Add custom domain**
51+
4. Enter your is-a.dev subdomain (e.g., `example.is-a.dev`)
52+
5. Firebase will verify domain ownership automatically through DNS
53+
6. Wait for the SSL certificate to be provisioned (this can take up to 24 hours)
54+
55+
## Notes
56+
57+
- Firebase Hosting automatically provides SSL certificates for custom domains
58+
- Make sure your Firebase project is deployed and accessible before adding the custom domain
59+
60+
## Troubleshooting
61+
62+
If you encounter issues:
63+
64+
- Ensure your Firebase project is deployed and accessible via the default `.web.app` domain
65+
- Check that your DNS records have propagated (this can take up to 48 hours)
66+
- Verify your Firebase Hosting configuration in `firebase.json`
67+
- Make sure your build files are in the correct public directory specified in your Firebase configuration

src/media/firebase.svg

Lines changed: 21 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)