Skip to content

Commit 5e5be45

Browse files
authored
Merge pull request #326 from JEOLLOGA/develop
[DEPLOY] next.js ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋ฐ v2 api ์ „ํ™˜
2 parents f5494ea + 1dd7c8f commit 5e5be45

File tree

257 files changed

+5055
-3703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+5055
-3703
lines changed

โ€Ž.gitignoreโ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ dist-ssr
2929

3030
.next
3131
next-env.d.ts
32-
dist
32+
33+
dist
34+
35+
CLAUDE.md
36+
37+
# TypeScript build cache
38+
tsconfig.tsbuildinfo

โ€Žeslint.config.jsโ€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ export default tseslint.config(
4949
'react/prop-types': 'off',
5050
'react/jsx-pascal-case': 'warn',
5151
'react/no-unknown-property': ['error', { ignore: ['css'] }],
52-
'react/function-component-definition': [
53-
'error',
54-
{
55-
namedComponents: 'arrow-function',
56-
},
57-
],
5852
'react-hooks/rules-of-hooks': 'error',
5953
'react-refresh/only-export-components': [
6054
'warn',

โ€Žindex.htmlโ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,5 @@
5151

5252
<div id="root"></div>
5353
<script type="module" src="/src/main.tsx"></script>
54-
<script
55-
type="text/javascript"
56-
src="https://oapi.map.naver.com/openapi/v3/maps.js?ncpClientId=%VITE_NAVER_API_KEY%"></script>
5754
</body>
5855
</html>

โ€Žnext.config.tsโ€Ž

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin';
2+
import type { NextConfig } from 'next';
3+
4+
const withVanillaExtract = createVanillaExtractPlugin();
5+
6+
const nextConfig: NextConfig = {
7+
reactStrictMode: true,
8+
9+
eslint: {
10+
ignoreDuringBuilds: true,
11+
},
12+
13+
images: {
14+
domains: ['noms.templestay.com', 'www.templestay.com', 'blogthumb.pstatic.net'],
15+
},
16+
17+
webpack(config) {
18+
const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg'));
19+
20+
config.module.rules.push(
21+
{
22+
...fileLoaderRule,
23+
test: /\.svg$/i,
24+
resourceQuery: /url/,
25+
},
26+
27+
{
28+
test: /\.svg$/i,
29+
issuer: fileLoaderRule.issuer,
30+
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
31+
use: ['@svgr/webpack'],
32+
},
33+
);
34+
35+
fileLoaderRule.exclude = /\.svg$/i;
36+
37+
return config;
38+
},
39+
};
40+
41+
export default withVanillaExtract(nextConfig);

โ€Žpackage.jsonโ€Ž

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "tsc -b && vite build",
7+
"dev": "next dev",
8+
"build": "tsc -b && next build",
99
"lint": "eslint src/**/*.{ts,tsx} --fix",
1010
"preview": "vite preview",
1111
"storybook": "storybook dev -p 6006",
@@ -21,10 +21,14 @@
2121
"@vanilla-extract/recipes": "^0.5.5",
2222
"@vanilla-extract/vite-plugin": "^4.0.19",
2323
"axios": "^1.7.9",
24+
"cookies-next": "^6.0.0",
2425
"jotai": "^2.11.1",
26+
"motion": "^12.10.1",
27+
"next": "^15.2.4",
2528
"ol": "^10.3.1",
2629
"react": "^18.3.1",
2730
"react-dom": "^18.3.1",
31+
"react-modal-sheet": "^4.4.0",
2832
"react-router-dom": "^7.1.1",
2933
"storybook-addon-react-router-v6": "^2.0.15"
3034
},
@@ -38,12 +42,14 @@
3842
"@storybook/react": "^8.4.7",
3943
"@storybook/react-vite": "^8.4.7",
4044
"@storybook/test": "^8.4.7",
45+
"@svgr/webpack": "^8.1.0",
4146
"@tanstack/react-query-devtools": "^5.62.11",
4247
"@types/navermaps": "^3.7.8",
4348
"@types/react": "^18.3.18",
4449
"@types/react-dom": "^18.3.5",
4550
"@typescript-eslint/eslint-plugin": "^8.19.0",
4651
"@typescript-eslint/parser": "^8.19.0",
52+
"@vanilla-extract/next-plugin": "^2.4.10",
4753
"@vitejs/plugin-react": "^4.3.4",
4854
"chromatic": "^11.22.1",
4955
"eslint": "^9.17.0",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
ย (0)