Skip to content

Commit

Permalink
set up config to handle first custom gutenberg block (home hero)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRocksWebDevelopment committed Jan 13, 2025
1 parent 046d480 commit 2329b79
Show file tree
Hide file tree
Showing 10 changed files with 1,170 additions and 596 deletions.
32 changes: 15 additions & 17 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";

export default defineConfig({
integrations: [tailwind(), react(), sitemap()],
trailingSlash: "always",
site: "https://andrewkepson.com",
image: {
domains: ["headless.andrewkepson.com"]
},
prefetch: true,
compressHTML: true,
experimental: {
contentLayer: true,
},
redirects: {
"/blog/create-headless-wordpress-source-gatsby-wordpress-api/":
"/blog/headless-wordpress/create-headless-wordpress-source-gatsby-wordpress-api/",
"/blog/how-and-why-nike-is-using-blockchain/": "/blog/blockchain/how-and-why-nike-is-using-blockchain/",
},
});
integrations: [tailwind(), react(), sitemap()],
trailingSlash: "always",
site: "https://andrewkepson.com",
image: {
domains: ["headless.andrewkepson.com"],
},
prefetch: true,
compressHTML: true,
output: "static",
redirects: {
"/blog/create-headless-wordpress-source-gatsby-wordpress-api/":
"/blog/headless-wordpress/create-headless-wordpress-source-gatsby-wordpress-api/",
"/blog/how-and-why-nike-is-using-blockchain/": "/blog/blockchain/how-and-why-nike-is-using-blockchain/",
},
});
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/react": "^3.6.3",
"@astrojs/react": "^4.1.3",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.3",
"@fontsource/eb-garamond": "^5.1.1",
"@fontsource/roboto": "^5.1.0",
"@fontsource/work-sans": "^5.1.0",
"@astrojs/tailwind": "^5.1.4",
"@fontsource/eb-garamond": "^5.1.2",
"@fontsource/roboto": "^5.1.1",
"@fontsource/work-sans": "^5.1.1",
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.2.0",
"@types/react": "^18.3.17",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"astro": "^4.16.18",
"astro": "^5.1.5",
"cheerio": "^1.0.0",
"dotenv": "^16.4.7",
"highlight.js": "^11.11.0",
"highlight.js": "^11.11.1",
"node-html-parser": "^7.0.1",
"outline": "link:@heroicons/react/outline",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.13.0",
Expand All @@ -32,12 +33,12 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-reveal": "^1.2.2",
"react-share": "^5.1.1",
"react-share": "^5.1.2",
"sharp": "^0.33.5",
"slugger": "^1.0.1",
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.15"
"@tailwindcss/typography": "^0.5.16"
}
}
Loading

0 comments on commit 2329b79

Please sign in to comment.