Skip to content

Commit

Permalink
finish blogs setup (#50)
Browse files Browse the repository at this point in the history
finish blog cards
  • Loading branch information
ashgw authored Feb 6, 2024
2 parents 1b9cdeb + a99d447 commit b81f095
Show file tree
Hide file tree
Showing 26 changed files with 956 additions and 325 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# local env files
.env*.local
*.mdx

# dependencies
/node_modules
Expand Down
23 changes: 1 addition & 22 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @type {import('next').NextConfig} */
const withMDX = require('@next/mdx')();

const nextConfig = {
images: {
Expand All @@ -12,28 +11,8 @@ const nextConfig = {
},
],
},
async headers() {
return [
{
source: '/api/:path*',
headers: [
{ key: 'Access-Control-Allow-Credentials', value: 'true' },
{ key: 'Access-Control-Allow-Origin', value: '*' },
{
key: 'Access-Control-Allow-Methods',
value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT',
},
{
key: 'Access-Control-Allow-Headers',
value:
'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version',
},
],
},
];
},
productionBrowserSourceMaps: process.env.NODE_ENV !== 'production',
pageExtensions: ['js', 'ts', 'jsx', 'tsx', 'mdx'],
};

module.exports = withMDX(nextConfig);
module.exports = nextConfig;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.5.0",
"react-use": "^17.5.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"sass": "^1.69.7",
Expand Down
Loading

0 comments on commit b81f095

Please sign in to comment.