File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ dist-ssr
2222* .njsproj
2323* .sln
2424* .sw ?
25+
26+ .env
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -3,5 +3,15 @@ import react from '@vitejs/plugin-react'
33
44// https://vitejs.dev/config/
55export 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+ } )
You can’t perform that action at this time.
0 commit comments