Skip to content

Commit 5ddacdf

Browse files
Add setup info regarding the CSP
1 parent 1488ed8 commit 5ddacdf

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ npx degit timlrx/tailwind-nextjs-starter-blog#typescript
9898
```
9999

100100
2. Personalize `siteMetadata.js` (site related information)
101-
3. Personalize `authors/default.md` (main author)
102-
4. Modify `projectsData.js`
103-
5. Modify `headerNavLinks.js` to customize navigation links
104-
6. Add blog posts
105-
7. Deploy on Vercel
101+
3. Modify the content security policy in `next.config.js` if you want to use
102+
any analytics provider or a commenting solution other than giscus.
103+
4. Personalize `authors/default.md` (main author)
104+
5. Modify `projectsData.js`
105+
6. Modify `headerNavLinks.js` to customize navigation links
106+
7. Add blog posts
107+
8. Deploy on Vercel
106108

107109
## Installation
108110

data/blog/introducing-tailwind-nextjs-starter-blog.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ I wanted it to be nearly as feature-rich as popular blogging templates like [bea
7979

8080
1. JS (official support) - `npx degit https://github.com/timlrx/tailwind-nextjs-starter-blog.git` or TS (community support) - `npx degit timlrx/tailwind-nextjs-starter-blog#typescript`
8181
2. Personalize `siteMetadata.js` (site related information)
82-
3. Personalize `authors/default.md` (main author)
83-
4. Modify `projectsData.js`
84-
5. Modify `headerNavLinks.js` to customize navigation links
85-
6. Add blog posts
86-
7. Deploy on Vercel
82+
3. Modify the content security policy in `next.config.js` if you want to use
83+
any analytics provider or a commenting solution other than giscus.
84+
4. Personalize `authors/default.md` (main author)
85+
5. Modify `projectsData.js`
86+
6. Modify `headerNavLinks.js` to customize navigation links
87+
7. Add blog posts
88+
8. Deploy on Vercel
8789

8890
## Development
8991

data/siteMetadata.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const siteMetadata = {
1818
linkedin: 'https://www.linkedin.com',
1919
locale: 'en-US',
2020
analytics: {
21+
// If you want to use an analytics provider you have to add it to the
22+
// content security policy in the `next.config.js` file.
2123
// supports plausible, simpleAnalytics, umami or googleAnalytics
2224
plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
2325
simpleAnalytics: false, // true or false
@@ -30,6 +32,8 @@ const siteMetadata = {
3032
provider: 'buttondown',
3133
},
3234
comment: {
35+
// If you want to use a commenting system other than giscus you have to add it to the
36+
// content security policy in the `next.config.js` file.
3337
// Select a provider and use the environment variables associated to it
3438
// https://vercel.com/docs/environment-variables
3539
provider: 'giscus', // supported providers: giscus, utterances, disqus

0 commit comments

Comments
 (0)