-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from BaeUiJin/part3-배의진-week15
[week15] 배의진
- Loading branch information
Showing
204 changed files
with
6,288 additions
and
1,212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "src" | ||
"baseUrl": "." | ||
}, | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,64 @@ | ||
const externalImages = [ | ||
{ | ||
hostname: "https://codeit-images.codeit.com", | ||
pathname: "/badges/COMPLETE_100_LESSONS.png", | ||
}, | ||
{ | ||
hostname: "codeit-frontend.codeit.com", | ||
pathname: "/static/images/brand/og_tag.png", | ||
}, | ||
{ | ||
hostname: "reactjs.org", | ||
pathname: "/logo-og.png", | ||
}, | ||
{ | ||
hostname: "assets.vercel.com", | ||
pathname: "/image/upload/front/nextjs/twitter-card.png", | ||
}, | ||
{ | ||
hostname: "tanstack.com", | ||
pathname: "/build/_assets/**", | ||
}, | ||
{ | ||
hostname: "storybook.js.org", | ||
pathname: "/images/social/og-home.jpg", | ||
}, | ||
{ | ||
hostname: "testing-library.com", | ||
pathname: "/img/octopus-128x128.png", | ||
}, | ||
{ | ||
hostname: "static.cdninstagram.com", | ||
pathname: "/rsrc.php/v3/yt/r/30PrGfR3xhB.png", | ||
}, | ||
{ | ||
hostname: "s.pstatic.net", | ||
pathname: "/static/www/mobile/edit/2016/0705/mobile_212852414260.png", | ||
}, | ||
]; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
} | ||
webpack(config) { | ||
// NOTE: SVG 파일을 React 컴포넌트로 불러오기 위한 설정 추가 | ||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
use: ["@svgr/webpack"], | ||
}); | ||
return config; | ||
}, | ||
|
||
images: { | ||
remotePatterns: externalImages.map(({ hostname, pathname }) => { | ||
return { | ||
protocol: "https", | ||
hostname: hostname, | ||
port: "", | ||
pathname: pathname, | ||
}; | ||
}), | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Oops, something went wrong.