Skip to content

Commit 1f6cb1f

Browse files
committed
Fixes redirect to repo url from index.html
1 parent 0080b94 commit 1f6cb1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import slugify from 'slugify'
66
import { parse } from 'yaml'
77
import quotes, { type Quote, type Author, type AuthorDescription, type RawQuote, type AuthorWithQuotes } from '../src/quotes.js'
88

9+
const REPO_URL = 'https://github.com/FullStackBulletin/tech-quotes'
910
const GH_PAGES_URL = 'https://fullStackbulletin.github.io/tech-quotes'
1011
const baseUrl = process.env.BASE_URL ?? GH_PAGES_URL
1112

@@ -24,7 +25,7 @@ await Promise.all([
2425
// Creates an index.html file that redirects to the GitHub repo
2526
const index = `<html>
2627
<head>
27-
<meta http-equiv="refresh" content="0; url=${GH_PAGES_URL}">
28+
<meta http-equiv="refresh" content="0; url=${REPO_URL}">
2829
</head>
2930
<body></body>
3031
</html>`

0 commit comments

Comments
 (0)