Skip to content

Commit

Permalink
Merge pull request #132 from prgrms-web-devcourse-final-project/feature/
Browse files Browse the repository at this point in the history
#126-TestSet

test: bundle-analyzer를 활용한 번들 용량 체크
  • Loading branch information
minjeongss authored Dec 27, 2024
2 parents e1c7662 + a676b37 commit cf8c13d
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/api/game/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { API_PORT_CONFIG, API_URL_CONFIG } from '@/config/apiEndPointConfig';
import { API_URL_CONFIG } from '@/config/apiEndPointConfig';
import axiosInstance from '@/lib/axios';
import { NextRequest, NextResponse } from 'next/server';

Expand Down
2 changes: 1 addition & 1 deletion app/game/[roomId]/[round]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const GamePage = ({ params }: GamePageProps) => {
const [hasSubmitted, setHasSubmitted] = useState(false);

const {
gameState,
// gameState,
currentRound,
isMapView,
showBackIcon,
Expand Down
4 changes: 0 additions & 4 deletions components/Layout/Game/Character.styles.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import styled from 'styled-components';
import colors from '@/styles/color/palette';

interface CharacterWrapperProps {
animation?: string;
}

export const CharactersContainer = styled.div`
position: relative;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion components/Layout/Home/MainBanner/Level.styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled, { keyframes } from 'styled-components';
import styled from 'styled-components';

export const Container = styled.div`
position: absolute;
Expand Down
15 changes: 12 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import bundleAnalyzer from '@next/bundle-analyzer';

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
openAnalyzer: false,
});

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
swcMinify: true,
openAnalyzer:true,
compiler: {
styledComponents: {
displayName: true,
Expand All @@ -13,8 +22,8 @@ const nextConfig = {
source: '/group-service/:path*',
destination: `${
process.env.NODE_ENV === 'development'
? 'http://3.39.135.47:8083/group-service/:path*' // 개발 환경
: 'https://urdego.com/api/group-service/:path*' // 프로덕션 환경
? 'http://3.39.135.47:8083/group-service/:path*'
: 'https://urdego.com/api/group-service/:path*'
}`,
},
];
Expand All @@ -24,4 +33,4 @@ const nextConfig = {
},
};

export default nextConfig;
export default withBundleAnalyzer(nextConfig);
177 changes: 177 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
"@next/bundle-analyzer": "^15.0.4",
"@storybook/addon-essentials": "^8.4.4",
"@storybook/addon-interactions": "^8.4.4",
"@storybook/addon-onboarding": "^8.4.4",
Expand Down

0 comments on commit cf8c13d

Please sign in to comment.