Skip to content

Commit 13c863f

Browse files
committed
google console added
1 parent 282d0c1 commit 13c863f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
.env

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap"
1414
rel="stylesheet"
1515
/>
16+
<meta name="google-site-verification" content="%VITE_GOOGLE_SITE_VERIFICATION%" />
1617
</head>
1718
<body>
1819
<div id="root"></div>

vite.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@ import react from '@vitejs/plugin-react'
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6-
plugins: [react()],
7-
})
6+
plugins: [
7+
react(),
8+
{
9+
name: 'html-transform',
10+
transformIndexHtml(html) {
11+
return html.replace(
12+
'%VITE_GOOGLE_SITE_VERIFICATION%',
13+
process.env.VITE_GOOGLE_SITE_VERIFICATION
14+
);
15+
}
16+
}],
17+
})

0 commit comments

Comments
 (0)