Skip to content

Commit 65cdc37

Browse files
committed
fix: add write permission to gh-pages workflow and clean up routing
1 parent 2b5704b commit 65cdc37

File tree

3 files changed

+2
-51
lines changed

3 files changed

+2
-51
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
build-and-deploy:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214

1315
steps:
1416
- name: Checkout

index.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,6 @@
1919
<meta property="twitter:title" content="AI Profile Assistant" />
2020
<meta property="twitter:description" content="AI Profile Assistant - Your Professional Profile" />
2121
<meta property="twitter:image" content="/placeholder-og-image.png" />
22-
23-
<!-- GitHub Pages SPA Support -->
24-
<script type="text/javascript">
25-
// Single Page Apps for GitHub Pages
26-
// MIT License
27-
// https://github.com/rafgraph/spa-github-pages
28-
// This script checks to see if a redirect is present in the query string,
29-
// converts it back into the correct url and adds it to the
30-
// browser's history using window.history.replaceState(...),
31-
// which won't cause the browser to attempt to load the new url.
32-
// When the single page app is loaded further down in this file,
33-
// the correct url will be waiting in the browser's history for
34-
// the single page app to route accordingly.
35-
(function(l) {
36-
if (l.search[1] === '/' ) {
37-
var decoded = l.search.slice(1).split('&').map(function(s) {
38-
return s.replace(/~and~/g, '&')
39-
}).join('?');
40-
window.history.replaceState(null, null,
41-
l.pathname.slice(0, -1) + decoded + l.hash
42-
);
43-
}
44-
}(window.location))
45-
</script>
4622
</head>
4723
<body>
4824
<div id="root"></div>

public/404.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)