Skip to content

Commit

Permalink
google console added
Browse files Browse the repository at this point in the history
  • Loading branch information
devvsakib committed Jul 29, 2024
1 parent 282d0c1 commit 13c863f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

.env
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<meta name="google-site-verification" content="%VITE_GOOGLE_SITE_VERIFICATION%" />
</head>
<body>
<div id="root"></div>
Expand Down
14 changes: 12 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
plugins: [
react(),
{
name: 'html-transform',
transformIndexHtml(html) {
return html.replace(
'%VITE_GOOGLE_SITE_VERIFICATION%',
process.env.VITE_GOOGLE_SITE_VERIFICATION
);
}
}],
})

0 comments on commit 13c863f

Please sign in to comment.