Skip to content

Commit

Permalink
change next config
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Jan 14, 2024
1 parent b6ef13a commit bc78649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/blog/[slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import Article from 'components/articles';

export default function BlogArticle({ params }) {
const { slug } = params;

const { default: DefaultArticle, metadata } = require(`articles/${slug}.mdx`);

return (
Expand Down
4 changes: 2 additions & 2 deletions components/articles/content/index.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';

import s from './content.module.css';

export default function ArticleContent({ children }) {
'use client';

return (
<div className={s.root}>
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions next.config.js → next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const withMDX = require('@next/mdx')()
import withMDX from '@next/mdx';

const contentSecurityPolicy = `
default-src 'self' https://*.googletagmanager.com https://*.google-analytics.com https://*.analytics.google.com https://*.vercel-insights.com https://vercel.live https://mateonunez.dev/;
Expand Down Expand Up @@ -84,4 +84,4 @@ const nextConfig = {
outputFileTracing: false,
};

module.exports = withMDX(nextConfig);
export default withMDX()(nextConfig);

0 comments on commit bc78649

Please sign in to comment.