Skip to content

Commit

Permalink
Temp workaround for MDX bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlambrecht committed Dec 27, 2022
1 parent 29977eb commit dac4eea
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 16 deletions.
20 changes: 10 additions & 10 deletions _caseStudies/sola-tiny-chef.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,52 +93,52 @@ aspectH='9'
aspectW='16'
slides={[
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_01.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_01.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 01',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_02.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_02.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 02',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_03.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_03.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 03',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_04.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_04.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 04',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_05.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_05.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 05',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_06.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_06.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 06',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_07.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_07.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 07',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_08.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_08.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 08',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_09.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_09.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 09',
diminsions: {width: 2016, height: 1224}
},
{
src: '/img/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_10.jpg',
src: '/img/case-studies/sola-tiny-chef/Pixel-Bakery_Sola_TinyChef_Storyboards_10.jpg',
alt: 'SOLA Tiny Chef Animation Storyboards Slide 10',
diminsions: {width: 2016, height: 1224}
},
Expand Down
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const React = require('react')
// const { withPlugins, extend } = require('next-compose-plugins')

const { redirects } = require('./redirects.config.js')

module.exports = () => {
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})

const config = {
async headers() {
return [
Expand Down Expand Up @@ -46,6 +46,7 @@ module.exports = () => {
},
]
},

swcMinify: true,
images: {
minimumCacheTTL: 31536000,
Expand Down Expand Up @@ -87,7 +88,6 @@ module.exports = () => {
},
redirects,
}

const plugins = [withBundleAnalyzer]
return plugins.reduce((acc, next) => next(acc), config)
}
1 change: 1 addition & 0 deletions pages/about/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export async function getStaticProps({ params }) {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
3 changes: 2 additions & 1 deletion pages/careers/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function JobsPage({ slug, source, frontMatter }) {
<Image
layout='fill'
objectFit='cover'
className='object-center'
className='object-center '
src={`${ImgPrefix}${coverImage}`}
alt={`Pixel Bakery is hiring a ${frontMatter.commitment} ${frontMatter.title}`}
/>
Expand Down Expand Up @@ -141,6 +141,7 @@ export const getStaticProps = async ({ params }) => {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
1 change: 1 addition & 0 deletions pages/education/project-files/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const getStaticProps = async ({ params }) => {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
1 change: 1 addition & 0 deletions pages/education/tutorials/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const getStaticProps = async ({ params }) => {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
1 change: 1 addition & 0 deletions pages/recipes/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const getStaticProps = async ({ params }) => {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
1 change: 1 addition & 0 deletions pages/work/case-studies/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const getStaticProps = async ({ params }) => {
mdxOptions: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
development: false,
},
scope: data,
})
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==

"@types/node@*", "@types/node@^18.7.16":
version "18.11.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.17.tgz#5c009e1d9c38f4a2a9d45c0b0c493fe6cdb4bcb5"
integrity sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==
version "18.11.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.18.tgz#8dfb97f0da23c2293e554c5a50d61ef134d7697f"
integrity sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==

"@types/prop-types@*":
version "15.7.5"
Expand Down

0 comments on commit dac4eea

Please sign in to comment.