Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from caiogondim/upgrade-nextjs
Update packages
- Loading branch information
Showing
87 changed files
with
7,354 additions
and
3,406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules/ | ||
.DS_Store | ||
.next/ | ||
dist/ | ||
.now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import PropTypes from 'prop-types' | ||
|
||
function LinkTargetBlank({ href, children, css_ }) { | ||
function LinkTargetBlank ({ href, children, css_ }) { | ||
return <a href={href} css={css_} target="_blank" rel="noopener noreferrer">{children}</a> | ||
} | ||
|
||
LinkTargetBlank.propTypes = { | ||
href: PropTypes.string, | ||
children: PropTypes.node, | ||
css_: PropTypes.shape() | ||
} | ||
|
||
export default LinkTargetBlank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createElement } from 'react' | ||
|
||
export default function StaticContent ({ children, element = 'div', ...props }) { | ||
// if we're in the server or a spa navigation, just render it | ||
if (typeof window === 'undefined') { | ||
return createElement(element, { | ||
...props, | ||
children | ||
}) | ||
} | ||
|
||
// avoid re-render on the client | ||
return createElement(element, { | ||
...props, | ||
suppressHydrationWarning: true, | ||
dangerouslySetInnerHTML: { __html: '' } | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
const pipe = require('tubo') | ||
const withMDX = require('@next/mdx')() | ||
|
||
module.exports = pipe( | ||
{ | ||
webpack: (config) => { | ||
config.module.rules.push({ | ||
test: /\.css$/, | ||
use: ['raw-loader'] | ||
}) | ||
|
||
return config | ||
}, | ||
pageExtensions: ['js', 'jsx', 'mdx'] | ||
}, | ||
withMDX | ||
) | ||
module.exports = withMDX({ | ||
pageExtensions: ['js', 'jsx', 'mdx'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f749d80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error: