Skip to content

Commit

Permalink
[fix] metaTag 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
subsub-e committed Aug 21, 2024
1 parent 14ea77d commit a00f1a8
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions service/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') },
Expand Down

0 comments on commit a00f1a8

Please sign in to comment.