Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 지원 안 되는 브라우저 안내 페이지 pre render 하기 #465

Merged
merged 9 commits into from
Oct 15, 2024
Merged
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
public/unsupported.html
*.local

# Editor directories and files
Expand All @@ -25,4 +26,4 @@ dist-ssr

.env
.env.makers
.env.sopt
.env.sopt
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

gtag('config', 'G-DNPBGP8WDE');
</script>
<script async type="module" src="./src/views/UnsupportedPage/utils/checkBrowser.ts"></script>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand All @@ -24,6 +25,5 @@
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script>
<script type="module" src="./src/views/UnsupportedPage/utils/checkBrowser.ts"></script>
</body>
</html>
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --mode makers",
"dev:development": "vite --mode development",
"dev:sopt": "vite --mode sopt",
"build": "tsc && NODE_ENV=makers vite build --mode makers",
"build:makers": "tsc && vite build --mode development",
"build:sopt": "tsc && NODE_ENV=sopt vite build --mode sopt",
"dev": "NODE_ENV=makers vite --mode makers",
"dev:sopt": "NODE_ENV=sopt vite --mode sopt",
"dev:dev": "vite --mode development",
"build:ssg": "tsc && vite build --mode makers --ssr src/views/UnsupportedPage/pre-render.tsx && node dist/pre-render.js",
"build:ssg:sopt": "tsc && vite build --mode sopt --ssr src/views/UnsupportedPage/pre-render.tsx && node dist/pre-render.js",
"build": "yarn build:ssg && tsc && NODE_ENV=makers vite build --mode makers",
"build:sopt": "yarn build:ssg:sopt && tsc && NODE_ENV=sopt vite build --mode sopt",
"build:dev": "tsc && vite build --mode development",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest",
Expand Down
Loading