Skip to content

Commit

Permalink
feat: add latest releases to home (decaporg#48)
Browse files Browse the repository at this point in the history
* feat: add latest releases to home

- add gatsby-source-graphql
- remove dayjs alias
- remove updates and notifications from cms
- update releases style and markup
- get latest releases on build time in WhatsNew component
- add WhatsNew component to home and remove old updates code

* fix publishedAt in release, remove unused components

* move releases query to index

- fix release height
- remove unused imports
- format

* add margin-bottom to release
  • Loading branch information
martinjagodic authored Mar 11, 2024
1 parent 4fe4b8a commit 27cfa39
Show file tree
Hide file tree
Showing 12 changed files with 548 additions and 414 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
public
dist
node_modules
.env

# Local Netlify folder
.netlify
296 changes: 0 additions & 296 deletions data/updates.yml

This file was deleted.

11 changes: 11 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ module.exports = {
menu: staticConfig.menu,
},
plugins: [
{
resolve: 'gatsby-source-graphql',
options: {
typeName: 'GitHub',
fieldName: 'github',
url: 'https://api.github.com/graphql',
headers: {
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
},
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
Expand Down
3 changes: 0 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
alias: {
dayjs$: 'dayjs/dayjs.js',
},
},
});
};
Loading

0 comments on commit 27cfa39

Please sign in to comment.