Skip to content

Commit bd74646

Browse files
authored
Merge pull request #5 from flexdevguy/feature/simplify-architecture
chroe: build fix for netlify and github pages
2 parents 1cf1c9b + 6c45ae9 commit bd74646

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

dist/index.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,16 @@
5656
<!-- Canonical URL -->
5757
<link rel="canonical" href="https://grwm.dev/" />
5858

59-
<!-- Preconnect for performance -->
59+
<!-- Preconnect & Font Optimization -->
6060
<link rel="preconnect" href="https://fonts.googleapis.com" />
6161
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
62+
63+
<!-- Preload critical fonts for faster LCP -->
64+
<link rel="preload" as="font" type="font/woff2" href="https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHAPMtMadLh0_-8O7DB1-wR-PvY4pM.woff2" crossorigin />
65+
<link rel="preload" as="font" type="font/woff2" href="https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHAPMtMadLh5f-8O7DB1-wR-PvY4pM.woff2" crossorigin />
66+
67+
<!-- Import Google Fonts for Inter family (400, 500, 600, 700 weights) -->
68+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
6269

6370
<!-- DNS prefetch for external resources -->
6471
<link rel="dns-prefetch" href="https://calendly.com" />
@@ -120,10 +127,10 @@
120127
min-height: 100vh;
121128
}
122129
</style>
123-
<script type="module" crossorigin src="/assets/js/index-ajvqN6nm.js"></script>
124-
<link rel="modulepreload" crossorigin href="/assets/js/vendor-B17e3puc.js">
125-
<link rel="modulepreload" crossorigin href="/assets/js/react-vendor-BgDNyKGR.js">
126-
<link rel="stylesheet" crossorigin href="/assets/css/index-BOjscVBk.css">
130+
<script type="module" crossorigin src="/assets/js/index-DnX10HQq.js"></script>
131+
<link rel="modulepreload" crossorigin href="/assets/js/vendor-bNksgthj.js">
132+
<link rel="modulepreload" crossorigin href="/assets/js/react-vendor-dEhaxUkj.js">
133+
<link rel="stylesheet" crossorigin href="/assets/css/index-NoJfpD4e.css">
127134
</head>
128135
<!-- Google tag (gtag.js) -->
129136
<script

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@testing-library/jest-dom": "^6.1.5",
3535
"@testing-library/react": "^14.1.2",
3636
"@testing-library/user-event": "^14.5.1",
37+
"@types/node": "^25.0.3",
3738
"@types/react": "^18.2.43",
3839
"@types/react-dom": "^18.2.17",
3940
"@types/underscore": "^1.11.9",

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ export default defineConfig({
3838
})
3939
: null,
4040
].filter(Boolean),
41-
base: '/',
41+
base: process.env.DEPLOY_ENV === 'GH_PAGES'
42+
? '/flexdevguy/'
43+
: '/',
4244
build: {
4345
outDir: 'dist',
4446
// Copy public assets including robots.txt and sitemap.xml

0 commit comments

Comments
 (0)