Skip to content

Commit

Permalink
Add more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed May 27, 2020
1 parent 8176ad3 commit 5f8bf63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ export const getStaticProps: GetStaticProps<SSGPageProps, StaticParams> = async
Sentry.captureException(error);
});

return deepmerge(commonStaticProps, {
const staticProps: StaticPropsOutput = deepmerge(commonStaticProps, {
props: {
album,
albumId,
},
});

console.debug('getStaticProps.staticProps', staticProps);

return staticProps;
};

/**
Expand All @@ -67,10 +71,14 @@ export const getStaticPaths: GetStaticPaths<StaticParams> = async (): Promise<St
});
});

return {
const staticPaths: StaticPathsOutput = {
...commonStaticPaths,
fallback: true,
};

console.debug('getStaticPaths.staticPaths', getStaticPaths);

return staticPaths;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import deepmerge from 'deepmerge';
import map from 'lodash.map';
import size from 'lodash.size';
import { GetStaticPaths, GetStaticProps, NextPage } from 'next';
import { NextRouter, useRouter } from 'next/router';
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-unused-vars
import React from 'react';
import { Alert, Container } from 'reactstrap';
Expand Down Expand Up @@ -105,7 +104,6 @@ type Props = {

const ProductsWithSSGPage: NextPage<Props> = (props): JSX.Element => {
const { products } = props;
const router: NextRouter = useRouter();

return (
<DefaultLayout
Expand Down

0 comments on commit 5f8bf63

Please sign in to comment.