-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from luandro/mentat-1-1-fix-github-pages-routing
Fix routing issues for GitHub Pages and development environment
- Loading branch information
Showing
6 changed files
with
33 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Brazil Program</title> | ||
<meta name="description" content="Awana Digital Brazil Program" /> | ||
<meta name="author" content="Awana Digital" /> | ||
<meta property="og:image" content="/og-image.svg" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="/.gpt_engineer/index.js" type="module"></script> | ||
<script type="module" src="/src/main.jsx"></script> | ||
</body> | ||
</html> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Brazil Program</title> | ||
<meta name="description" content="Awana Digital Brazil Program" /> | ||
<meta name="author" content="Awana Digital" /> | ||
<meta property="og:image" content="/og-image.svg" /> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script src="/.gpt_engineer/index.js" type="module"></script> | ||
<script type="module" src="/src/main.jsx"></script> | ||
<!-- Catch-all redirect for SPA routing --> | ||
<script type="text/javascript"> | ||
if (location.pathname !== '/' && !location.pathname.includes('.')) { | ||
location.href = '/index.html'; | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "vite-project", | ||
"name": "partner-profile", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.