Skip to content

Commit d72d852

Browse files
authored
Merge pull request #7 from nurRiyad/data
Replace fake data with real one
2 parents 370e5f4 + 9769915 commit d72d852

11 files changed

+211
-155
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"**/.svn/**",
99
"**/.nuxt/**"
1010
],
11-
"cSpell.words": ["Nuxt", "Tailwindcss"]
11+
"cSpell.words": ["cloudinary", "Namecheap", "Nuxt", "Tailwindcss"]
1212
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: How To Connect You Namecheap Domain With Vercel Deployed App
3+
date: 1st Mar 2023
4+
description: Here you will lean how to connect your namecheap domain to vercel deployed app.
5+
image: /nuxt-blog/pexels-photo-1779487_fnvw1l.jpg
6+
alt: How To Connect You Namecheap Domain With Vercel Deployed App
7+
ogImage: https://res.cloudinary.com/dmecmyphj/image/upload/v1673369821/cld-sample-3.jpg
8+
provider: cloudinary
9+
tags: ['namecheap', 'vercel']
10+
published: true
11+
---
12+
13+
### Introduction
14+
15+
If you've purchased a domain from Namecheap and you want to connect it to your Vercel app, there are a few steps you need to follow. In this blog, we'll guide you through the process of connecting your Namecheap domain with your Vercel app.
16+
17+
### Step 1: Add a custom domain to your Vercel app
18+
19+
The first step is to add your custom domain to your Vercel app. To do this, log in to your Vercel account and go to your app dashboard. Click on "Settings" and then "Domains". Click on "Add Domain" and enter your custom domain name. Then click on "Add".
20+
21+
### Step 2: Get the DNS records from Vercel
22+
23+
Once you've added your custom domain to your Vercel app, you'll need to get the DNS records from Vercel. To do this, go back to the "Domains" section and click on the custom domain you just added. Then click on "DNS Records".
24+
25+
You'll see a list of DNS records that you need to add to your Namecheap account. These include the A record, the CNAME record, and the TXT record.
26+
27+
### Step 3: Add DNS records to Namecheap
28+
29+
Now that you have the DNS records from Vercel, you need to add them to your Namecheap account. To do this, log in to your Namecheap account and go to your domain dashboard. Click on "Advanced DNS" and then "Add New Record".
30+
31+
Add the A record first. In the "Type" dropdown menu, select "A (Address)". In the "Host" field, enter "@" (without the quotes). In the "Value" field, enter the IP address from the Vercel DNS records.
32+
33+
Next, add the CNAME record. In the "Type" dropdown menu, select "CNAME (Alias)". In the "Host" field, enter "www" (without the quotes). In the "Value" field, enter the value from the Vercel DNS records.
34+
35+
Finally, add the TXT record. In the "Type" dropdown menu, select "TXT (Text)". In the "Host" field, enter "@" (without the quotes). In the "Value" field, enter the value from the Vercel DNS records.
36+
37+
### Step 4: Verify DNS records
38+
39+
Once you've added the DNS records to your Namecheap account, you need to verify that they're correct. To do this, go back to your Vercel app dashboard and click on the custom domain. Then click on "Verify DNS Configuration". Vercel will check if the DNS records have been set up correctly.
40+
41+
It may take some time for the DNS records to propagate, so be patient. Once the DNS records have propagated, Vercel will verify them and your custom domain will be connected to your Vercel app.
42+
43+
### Conclusion
44+
45+
Connecting your Namecheap domain to your Vercel app is a relatively simple process. By following the steps outlined in this blog, you'll be able to connect your custom domain in no time. Remember to be patient as it may take some time for the DNS records to propagate. If you run into any issues, don't hesitate to reach out to Vercel support for assistance.

content/blogs/1. hello-world.md

-54
This file was deleted.

content/blogs/2. fix-tailwindcss-intellisense-in-nuxt3.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ image: /nuxt-blog/pexels-photo-157040_gwfamn.jpg
66
alt: Hwo to fix tailwind intellisense in nuxt3 project
77
ogImage: /nuxt-blog/pexels-photo-157040_gwfamn.jpg
88
provider: cloudinary
9-
tags: ['nuxt', 'vue', 'tailwind']
9+
tags: ['nuxt', 'tailwindcss']
1010
published: true
1111
---
1212

13-
## Problems
13+
### Problems
1414

1515
I had a Nuxt3 and TailwindCSS project. which was opened in VsCode. But the problem was, in my project the tailwind intellisense didn't working properly. I tried to reinstall the vscode tailwind extension but the problem didn't solve properly. Later after doing some research I found a [workaround](https://github.com/tailwindlabs/tailwindcss-intellisense/issues/663#issuecomment-1316788128), That I am sharing here today.
1616

17-
## Why It's Not working
17+
### Why It's Not working
1818

1919
In our nuxt project we have a `.nuxt` directory. Nuxt uses the `.nuxt/` directory in development to generate your Vue application. And if we try to look properly there is also a file called `.nuxt/tailwind.config.cjs`, So tailwind find to config file in the same project, one is in your root directory and another one is in you `.nuxt` directory.
2020

21-
## Possible Workaround
21+
### Possible Workaround
2222

2323
One possible solution is, In your project we call tell the extension to exclude the `.nuxt` directory. To exclude the `.nuxt` directory in your workspace,
2424

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: How To Create Namespace Subdomain & Connect To Vercel App
3+
date: 1st Mar 2023
4+
description: Here we will learn, How To Create Namespace Subdomain & Connect To Vercel App
5+
image: /nuxt-blog/pexels-photo-4523062_zeiadq.jpg
6+
alt: How To Create Namespace Subdomain & Connect To Vercel App
7+
ogImage: /nuxt-blog/pexels-photo-4523062_zeiadq.jpg
8+
provider: cloudinary
9+
tags: ['nuxt', 'vercel', 'namecheap']
10+
published: true
11+
---
12+
13+
### Introduction
14+
15+
Creating a subdomain on Namecheap and connecting it with a Vercel deployed app is a straightforward process. In this blog, we will guide you through the steps required to create a subdomain on Namecheap and connect it to your Vercel deployed app.
16+
17+
### Step 1: Create a subdomain on Namecheap
18+
19+
The first step is to create a subdomain on Namecheap. To do this, log in to your Namecheap account and go to your domain dashboard. Click on the "Advanced DNS" tab and then click on "Add New Record".
20+
21+
Select "CNAME (Alias)" from the "Type" dropdown menu. In the "Host" field, enter the name of your subdomain (for example, "app" if you want your subdomain to be "app.yourdomain.com"). In the "Value" field, enter the URL of your Vercel deployed app (for example, "yourapp.vercel.app").
22+
23+
### Step 2: Verify the subdomain
24+
25+
After creating the subdomain, you need to verify that it has been set up correctly. To do this, go to your Vercel deployed app dashboard and click on the "Domains" tab. Click on "Add Domain" and enter the name of your subdomain. Vercel will verify the subdomain and confirm that it has been set up correctly.
26+
27+
### Step 3: Add the subdomain to your Vercel deployed app
28+
29+
Now that your subdomain has been verified, you need to add it to your Vercel deployed app. To do this, go to your app dashboard and click on "Settings". Click on "Domains" and then click on "Add Domain". Enter the name of your subdomain and click on "Add".
30+
31+
### Step 4: Verify the subdomain in Vercel
32+
33+
After adding the subdomain to your Vercel deployed app, you need to verify that it has been set up correctly. To do this, click on the subdomain in your Vercel deployed app dashboard. Click on "Verify DNS Configuration". Vercel will check that the subdomain has been set up correctly and confirm that it is connected to your Vercel deployed app.
34+
35+
### Conclusion
36+
37+
Connecting a subdomain on Namecheap to your Vercel deployed app is a simple process that can be done in a few steps. By following the steps outlined in this blog, you can easily create a subdomain on Namecheap and connect it to your Vercel deployed app. Remember to verify your subdomain in both Namecheap and Vercel to ensure that it has been set up correctly. If you encounter any issues, reach out to Vercel support for assistance.

content/blogs/3. intro-to-nuxt.md

-32
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
title: How To Properly Fetch Nuxt Content Data and Render It in Nuxt Pages
3+
date: 1st Mar 2023
4+
description: Here we will learn How To Properly Fetch Nuxt Content Data and Render It in Nuxt Pages
5+
image: /nuxt-blog/pexels-photo-1036936_osvoac.jpg
6+
alt: How To Properly Fetch Nuxt Content Data and Render It in Nuxt Pages
7+
ogImage: /nuxt-blog/pexels-photo-1036936_osvoac.jpg
8+
provider: cloudinary
9+
tags: ['nuxt', 'nuxt-content']
10+
published: true
11+
---
12+
13+
### Introduction
14+
15+
Nuxt.js is a popular open-source framework for building Vue.js applications. With the release of Nuxt 3, developers have access to new features and improvements to streamline the development process. One of these features is Nuxt Content v2, which allows you to create and manage content in a simple and efficient way. In this blog post, we will guide you through the steps to connect Nuxt Content v2 with Nuxt 3.
16+
17+
### Step 1: Install the necessary dependencies
18+
19+
The first step is to install the necessary dependencies for Nuxt Content v2. To do this, run the following command:
20+
21+
```js
22+
npm install @nuxt/content@next
23+
24+
```
25+
26+
### Step 2: Configure Nuxt Content v2
27+
28+
Once the dependencies are installed, you need to configure Nuxt Content v2 in your Nuxt 3 project. To do this, create a new file named nuxt.config.js in the root directory of your project and add the following code:
29+
30+
```js
31+
export default {
32+
// Enable Nuxt Content module
33+
modules: [
34+
'@nuxt/content'
35+
],
36+
37+
```
38+
39+
In the above code, we have enabled the Nuxt Content module and set the directory where your content will be stored.
40+
41+
### Step 3: Create content files
42+
43+
Once Nuxt Content v2 is configured, you can create content files in the specified directory. By default, Nuxt Content v2 supports Markdown and YAML file formats. You can create a new file in the `content` directory with the following structure:
44+
45+
```md
46+
---
47+
title: 'Hello, world!'
48+
---
49+
50+
# Welcome to Nuxt Content v2
51+
52+
This is an example of a Markdown file created using Nuxt Content v2.
53+
```
54+
55+
In the above code, we have created a Markdown file with a title and a sample content.
56+
57+
### Step 4: Display content on a page
58+
59+
Now that we have created content files, we can display the content on a page. To do this, create a new Vue component in the components directory with the following code:
60+
61+
```vue
62+
<script setup lang="ts">
63+
const { path } = useRoute()
64+
const articles = await queryContent(path).findOne()
65+
</script>
66+
67+
<template>
68+
<main>
69+
<div>
70+
<ContentRenderer :value="articles">
71+
<template #empty>
72+
<p>No content found.</p>
73+
</template>
74+
</ContentRenderer>
75+
</div>
76+
</main>
77+
</template>
78+
```

0 commit comments

Comments
 (0)