Skip to content

Commit

Permalink
Merge branch 'main' into DST-633_add-dependency-track
Browse files Browse the repository at this point in the history
  • Loading branch information
aromko authored Dec 24, 2024
2 parents 5c21ac9 + baf871e commit d8ab086
Show file tree
Hide file tree
Showing 7 changed files with 1,252 additions and 1,555 deletions.
8 changes: 4 additions & 4 deletions config/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@storybook/source-loader": "^8.1.11",
"@storybook/test": "^8.1.11",
"@types/react": "18.3.16",
"@vitejs/plugin-react": "4.3.3",
"vite-tsconfig-paths": "5.0.1"
"@vitejs/plugin-react": "4.3.4",
"vite-tsconfig-paths": "5.1.4"
},
"devDependencies": {
"@storybook/addon-storysource": "^8.1.11",
Expand All @@ -46,10 +46,10 @@
"storybook": "^8.1.11",
"tailwindcss": "3.4.16",
"typescript": "5.6.3",
"vite": "5.4.10"
"vite": "6.0.4"
},
"peerDependencies": {
"@storybook/react": "8.0.x || 8.1.x || 8.2.x || 8.3.x",
"@storybook/react": "8.0.x || 8.1.x || 8.2.x || 8.3.x || 8.4.x",
"react": "18.x",
"react-dom": "18.x",
"typescript": "5.3.x || 5.5.x || 5.6.x"
Expand Down
10 changes: 3 additions & 7 deletions docs/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ import { TocContainer } from '@/ui/Toc';
import { Mdx } from '@/ui/mdx';

interface ContentPageProps {
params: {
slug: string[];
};
params: Promise<{ slug: string[] }>;
}

async function getPageFromParams(params: ContentPageProps['params']) {
const slug = params?.slug?.join('/');
const slug = (await params)?.slug?.join('/');
const page = allContentPages.find(page => page.slug === slug);

return page || null;
Expand Down Expand Up @@ -49,9 +47,7 @@ export async function generateMetadata({
: {};
}

export async function generateStaticParams(): Promise<
ContentPageProps['params'][]
> {
export async function generateStaticParams(): Promise<{ slug: string[] }[]> {
return allContentPages.map(page => ({
slug: page.slug.split('/'),
}));
Expand Down
7 changes: 3 additions & 4 deletions docs/app/releases/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import { TocContainer } from '@/ui/Toc';
import { Mdx } from '@/ui/mdx';

interface BlogPostProps {
params: {
slug: string[];
};
params: Promise<{ slug: string[] }>;
}
async function getPostFromParams(params: BlogPostProps['params']) {
const fullPath = `releases/blog/${params.slug}`;
const { slug } = await params;
const fullPath = `releases/blog/${slug}`;
const currentPost = allBlogs.find(post => post.slug === fullPath);

return currentPost || null;
Expand Down
1 change: 0 additions & 1 deletion docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const pkg = require('./package.json');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
distDir: '.next',
eslint: {
ignoreDuringBuilds: true,
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"dayjs": "1.11.13",
"dotenv": "16.4.7",
"eslint": "9.13.0",
"eslint-config-next": "14.2.20",
"eslint-config-next": "15.1.2",
"framer-motion": "11.11.17",
"github-slugger": "2.0.0",
"mdast-util-toc": "7.1.0",
"next": "14.2.20",
"next": "15.1.2",
"next-contentlayer2": "0.5.3",
"postcss": "8.4.49",
"react": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"husky": "9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"next": "14.2.20",
"next": "15.1.2",
"postcss-import": "16.1.0",
"postcss-loader": "8.1.1",
"prettier": "3.3.3",
Expand Down
Loading

0 comments on commit d8ab086

Please sign in to comment.