Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,41 @@
/** @type {import('next').NextConfig} */
import CompressionPlugin from 'compression-webpack-plugin';
import withBundleAnalyzer from '@next/bundle-analyzer';
import withPlaiceholder from '@plaiceholder/next';

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

const nextConfig = {
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});

if (!config.mode.includes('development')) {
config.plugins.push(new CompressionPlugin());
}

return config;
},
images: {
domains: ['manchui-bucket.s3.ap-northeast-2.amazonaws.com', 'ryungbucket.s3.ap-northeast-2.amazonaws.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'manchui-bucket.s3.ap-northeast-2.amazonaws.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'ryungbucket.s3.ap-northeast-2.amazonaws.com',
pathname: '**',
},
],
formats: ['image/avif', 'image/webp'],
},
};

export default nextConfig;
export default bundleAnalyzer(withPlaiceholder(nextConfig));
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"chromatic": "npx chromatic --project-token=chpt_7c63d99a915fab5",
"dev:db": "json-server src/data/main.json --port=8888"
"dev:db": "json-server src/data/main.json --port=8888",
"analyze": "ANALYZE=true next build"
},
"dependencies": {
"@plaiceholder/next": "^3.0.0",
"@stomp/stompjs": "^7.0.0",
"@svgr/webpack": "^8.1.0",
"@tanstack/react-query": "^5.59.16",
"@tanstack/react-query-devtools": "^5.59.16",
Expand All @@ -25,17 +28,20 @@
"event-source-polyfill": "^1.0.31",
"framer-motion": "^11.11.11",
"json-server": "^1.0.0-beta.3",
"lottie-react": "^2.4.0",
"lottie-light-react": "^2.4.0",
"next": "14.2.15",
"plaiceholder": "^3.0.0",
"pretendard": "^1.3.9",
"react": "^18",
"react-dom": "^18",
"react-toastify": "^10.0.6",
"sharp": "^0.33.5",
"tailwind-merge": "^2.5.4",
"zustand": "^5.0.1"
},
"devDependencies": {
"@chromatic-com/storybook": "1.9.0",
"@next/bundle-analyzer": "^15.1.5",
"@storybook/addon-essentials": "8.3.5",
"@storybook/addon-interactions": "8.3.5",
"@storybook/addon-links": "8.3.5",
Expand All @@ -54,6 +60,7 @@
"@typescript-eslint/parser": "^8.9.0",
"autoprefixer": "^10.4.20",
"chromatic": "^11.12.6",
"compression-webpack-plugin": "^11.1.0",
"eslint": "^8",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "14.2.15",
Expand All @@ -75,6 +82,7 @@
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"storybook": "8.3.5",
"svgo": "^3.3.2",
"tailwindcss": "^3.4.1",
"typescript": "5.4.4"
},
Expand Down
22 changes: 0 additions & 22 deletions public/icons/Search.tsx

This file was deleted.

1 change: 1 addition & 0 deletions public/icons/main/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/save-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/icons/save.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions public/icons/search.svg

This file was deleted.

Binary file removed public/images/develop.webp
Binary file not shown.
Binary file removed public/images/food.webp
Binary file not shown.
Binary file removed public/images/landing/landing-create.png
Binary file not shown.
Binary file added public/images/landing/landing-create.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/landing-create2.png
Binary file not shown.
Binary file added public/images/landing/landing-create2.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/landing-moim.png
Binary file not shown.
Binary file added public/images/landing/landing-moim.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/landing-signup.png
Binary file not shown.
Binary file added public/images/landing/landing-signup.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/landing/poster.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/review1.png
Binary file not shown.
Binary file added public/images/landing/review1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/review2.png
Binary file not shown.
Binary file added public/images/landing/review2.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/landing/review3.png
Binary file not shown.
Binary file added public/images/landing/review3.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/main/develop.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/main/food.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/main/study.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/popular.webp
Binary file not shown.
1 change: 1 addition & 0 deletions public/images/position/design.min.svg
21 changes: 0 additions & 21 deletions public/images/position/design.svg
Diff not rendered.
Loading
Loading