From 14ea77dc9636ed6915e175a16f8692be9f37fa30 Mon Sep 17 00:00:00 2001 From: subsub-e Date: Wed, 21 Aug 2024 15:08:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[fix]=20metaTag=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/index.html | 16 +++++++++ service/src/App.jsx | 35 ++++--------------- service/src/pages/eventIntro/EventIntro.jsx | 18 ---------- .../src/pages/joinEvent/JoinEventIntro.jsx | 18 ---------- service/src/pages/miniquiz/MiniQuiz.jsx | 21 ----------- service/src/pages/newCarIntro/NewCarIntro.jsx | 18 ---------- service/src/pages/worldCup/WorldCupMain.jsx | 21 ----------- 7 files changed, 23 insertions(+), 124 deletions(-) diff --git a/service/index.html b/service/index.html index e90211c..e81499a 100644 --- a/service/index.html +++ b/service/index.html @@ -8,6 +8,22 @@ rel="stylesheet" /> + + + + + + + 캐스퍼 이벤트
diff --git a/service/src/App.jsx b/service/src/App.jsx index 82b185f..247f0f0 100644 --- a/service/src/App.jsx +++ b/service/src/App.jsx @@ -3,7 +3,6 @@ import { AuthProvider } from '@/context/authContext'; import Header from '@/components/header/Header'; import Footer from '@/components/footer/Footer'; import { Outlet, useLocation } from 'react-router-dom'; -import { Helmet, HelmetProvider } from 'react-helmet-async'; function App() { const location = useLocation(); @@ -38,33 +37,13 @@ function App() { ); return ( - -
- - - - - - - - 캐스퍼 이벤트 - - - {!hideHeader &&
} - - - {!hideFooter &&
} -
-
+
+ + {!hideHeader &&
} + + + {!hideFooter &&
} +
); } diff --git a/service/src/pages/eventIntro/EventIntro.jsx b/service/src/pages/eventIntro/EventIntro.jsx index 56ca870..377a927 100644 --- a/service/src/pages/eventIntro/EventIntro.jsx +++ b/service/src/pages/eventIntro/EventIntro.jsx @@ -4,28 +4,10 @@ import EventIntroNav from '@/pages/eventIntro/EventIntroNav'; import EventIntroRewards from '@/pages/eventIntro/EventIntroRewards'; import { animationVariants } from '@/styles/FramerMotion'; import { motion } from 'framer-motion'; -import { Helmet } from 'react-helmet-async'; function EventIntro() { return (
- - 캐스퍼 이벤트 소개 - - - - - -
diff --git a/service/src/pages/joinEvent/JoinEventIntro.jsx b/service/src/pages/joinEvent/JoinEventIntro.jsx index 85b2ec3..58943a2 100644 --- a/service/src/pages/joinEvent/JoinEventIntro.jsx +++ b/service/src/pages/joinEvent/JoinEventIntro.jsx @@ -5,30 +5,12 @@ import JoinEventIntroMain from '@/pages/joinEvent/JoinEventIntroMain'; import WorldCup from '@/pages/joinEvent/WorldCup'; import MiniQuiz from '@/pages/joinEvent/MiniQuiz'; import useScroll from '@/hooks/useScroll'; -import { Helmet } from 'react-helmet-async'; function JoinEventIntro() { const { refs } = useScroll(); return ( <> - - 캐스퍼 이벤트 참여 - - - - - -
diff --git a/service/src/pages/miniquiz/MiniQuiz.jsx b/service/src/pages/miniquiz/MiniQuiz.jsx index 9f3f36b..3f834db 100644 --- a/service/src/pages/miniquiz/MiniQuiz.jsx +++ b/service/src/pages/miniquiz/MiniQuiz.jsx @@ -2,7 +2,6 @@ import React, { useState } from 'react'; import EventHeader from '@/components/header/EventHeader'; import ExitModal from '@/components/modal/ExitModal'; import MiniQuizMain from '@/pages/miniquiz/MiniQuizMain'; -import { Helmet } from 'react-helmet-async'; function MiniQuiz() { const [openExitModal, setOpenExitModal] = useState(false); @@ -12,26 +11,6 @@ function MiniQuiz() { return ( <>
- - 캐스퍼 미니퀴즈 - - - - - - - - 캐스퍼 EV 소개 - - - - - -
diff --git a/service/src/pages/worldCup/WorldCupMain.jsx b/service/src/pages/worldCup/WorldCupMain.jsx index f67fa2e..0ba0789 100644 --- a/service/src/pages/worldCup/WorldCupMain.jsx +++ b/service/src/pages/worldCup/WorldCupMain.jsx @@ -4,7 +4,6 @@ import worldCupData from '@/constants/worldCup/worldCupData'; import { useNavigate } from 'react-router-dom'; import shuffleArr from '@/utils/shuffleArr'; import { postWorldCupResult } from '@/api/worldCup/index'; -import { Helmet } from 'react-helmet-async'; const WorldCupMain = () => { const navigate = useNavigate(); @@ -67,26 +66,6 @@ const WorldCupMain = () => { return (
- - 캐스퍼 상황 월드컵 - - - - - - Date: Wed, 21 Aug 2024 15:09:24 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[fix]=20metaTag=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/vite.config.js | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/service/vite.config.js b/service/vite.config.js index 10c5030..cabdb9e 100644 --- a/service/vite.config.js +++ b/service/vite.config.js @@ -2,36 +2,11 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react-swc'; import { resolve } from 'path'; import svgr from 'vite-plugin-svgr'; -import prerender from '@prerenderer/rollup-plugin'; -import dotenv from 'dotenv'; dotenv.config(); export default defineConfig({ - plugins: [ - react(), - svgr(), - prerender({ - routes: [ - '/', - '/event', - '/event/worldCup', - '/event/miniQuiz', - '/introduce', - ], - renderer: '@prerenderer/renderer-puppeteer', - rendererOptions: { - maxConcurrentRoutes: 1, - renderAfterTime: 500, - }, - postProcess(renderedRoute) { - const apiUrl = process.env.VITE_API_URL; - renderedRoute.html = renderedRoute.html - .replace(/http:/i, 'https:') - .replace(/(https:\/\/)?(localhost|127\.0\.0\.1):\d*/i, apiUrl); - }, - }), - ], + plugins: [react(), svgr()], resolve: { alias: [ { find: '@', replacement: resolve(__dirname, 'src') },