Skip to content

Commit

Permalink
chore: update nextjs + add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
David Dias committed Jul 28, 2024
1 parent f2246b6 commit de71b72
Show file tree
Hide file tree
Showing 11 changed files with 218 additions and 227 deletions.
2 changes: 1 addition & 1 deletion apps/blog/lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const removeIgnoredFiles = async (files) => {

module.exports = {
// Type check TypeScript files
'**/*.(ts|tsx)': () => 'npm run check:types',
'**/*.(ts|tsx)': () => 'pnpm run check:types',

// Lint then format TypeScript and JavaScript files
'**/*.(ts|tsx|js)': async (files) => {
Expand Down
7 changes: 3 additions & 4 deletions apps/blog/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ const nextConfig = withPlugins([plugins, nextTranslate], {
},
],
})
const fileLoaderRule = config.module.rules.find((rule) => rule.test && rule.test.test('.svg'))
fileLoaderRule.exclude = /\.svg$/
config.module.rules.push({
test: /\.svg$/,
loader: require.resolve('@svgr/webpack'),
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
})
return config
},
Expand Down
3 changes: 2 additions & 1 deletion apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"@giscus/react": "^2.2.8",
"@next/third-parties": "^14.2.5",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.13",
Expand All @@ -34,7 +35,7 @@
"gray-matter": "^4.0.3",
"humanize-string": "^3.0.0",
"is-mobile": "^4.0.0",
"next": "13.4.5",
"next": "14.2.5",
"next-compose-plugins": "^2.2.1",
"next-mdx-remote": "^4.4.1",
"next-plausible": "^3.12.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/public/rss/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>The David Dias | Front-End Developer, Podcaster &amp; Content Creator</title>
<link>https://thedaviddias.com</link>
<description>Hey, I'm David Dias, a Front-End Developer based in Toronto/Canada. I love discussing code, technology, expatriation and life.</description>
<lastBuildDate>Sun, 28 Jul 2024 14:58:04 GMT</lastBuildDate>
<lastBuildDate>Sun, 28 Jul 2024 15:11:28 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en-US</language>
Expand Down
2 changes: 1 addition & 1 deletion apps/blog/public/rss/fr/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>The David Dias | Développeur Front-End, podcasteur &amp; créateur de contenu</title>
<link>https://thedaviddias.com</link>
<description>Salut toi! Je m'appele David Dias. Je suis développeur Front-End, podcasteur, créateur de contenu numérique passioné pour résoudre les problèmes digitaux et humains! J'aime rencontrer de nouvelles personnes, bâtir des communautées et parler de tech, d'expatriation et de web.</description>
<lastBuildDate>Sun, 28 Jul 2024 14:58:04 GMT</lastBuildDate>
<lastBuildDate>Sun, 28 Jul 2024 15:11:28 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>fr</language>
Expand Down
178 changes: 88 additions & 90 deletions apps/blog/public/sitemap-0.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/blog/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://thedaviddias.com/sitemap-0.xml</loc></sitemap>
</sitemapindex>
</sitemapindex>
2 changes: 2 additions & 0 deletions apps/blog/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { AppProps } from 'next/app'
import PlausibleProvider from 'next-plausible'
import { DefaultSeo } from 'next-seo'
import { ThemeProvider } from 'next-themes'
import { GoogleTagManager } from '@next/third-parties/google'

import '@/styles/globals.css'
import '@/styles/prism.css'
Expand All @@ -14,6 +15,7 @@ const App = ({ Component, pageProps }: AppProps) => {
<ThemeProvider attribute="class">
<DefaultSeo {...SEO} />
<Component {...pageProps} />
<GoogleTagManager gtmId="G-4NMCVETX8K" />
</ThemeProvider>
</PlausibleProvider>
)
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "thedaviddias.com",
"private": true,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"check:types": "turbo check:types",
"analyse": "turbo analyse",
"test": "turbo test",
"clean": "turbo clean",
Expand Down
Loading

0 comments on commit de71b72

Please sign in to comment.