File tree Expand file tree Collapse file tree 4 files changed +17
-14
lines changed
Expand file tree Collapse file tree 4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1515 timeout-minutes : 10
1616
1717 steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
1821 - name : Generate GitHub Contribution Snake
1922 uses : Platane/snk/svg-only@v3
2023 with :
2629 - name : Push to GitHub
2730 uses : EndBug/add-and-commit@v9
2831 with :
29- branch : output
32+ new_branch : output
3033 add : ' dist/*'
3134 message : ' Generate contribution snake'
Original file line number Diff line number Diff line change 1515 < meta property ="og:url " content ="https://thomasjbutler.me ">
1616
1717 <!-- Favicon -->
18- < link rel ="icon " type ="image/x-icon " href ="/favicon.ico ">
18+ < link rel ="icon " type ="image/x-icon " href =". /favicon.ico ">
1919
2020 <!-- Font Awesome -->
2121 < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css ">
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const App: React.FC = () => {
5252
5353 return (
5454 < >
55- < Router >
55+ < Router basename = "/ThomasJButler" >
5656 < Routes >
5757 < Route path = "/" element = { < Layout /> } >
5858 < Route index element = {
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
33import { App } from './App' ;
4- import * as serviceWorker from './utils/serviceWorker' ;
4+ // import * as serviceWorker from './utils/serviceWorker';
55
66// Initialize React app
77const root = ReactDOM . createRoot (
@@ -14,13 +14,13 @@ root.render(
1414 </ React . StrictMode >
1515) ;
1616
17- // Register service worker for offline support
18- serviceWorker . register ( {
19- onUpdate : ( registration ) => {
20- // Show update notification to user
21- console . log ( 'New version available! Refresh to update.' ) ;
22- } ,
23- onSuccess : ( registration ) => {
24- console . log ( 'App is ready for offline use!' ) ;
25- }
26- } ) ;
17+ // Service worker disabled for GitHub Pages deployment
18+ // serviceWorker.register({
19+ // onUpdate: (registration) => {
20+ // // Show update notification to user
21+ // console.log('New version available! Refresh to update.');
22+ // },
23+ // onSuccess: (registration) => {
24+ // console.log('App is ready for offline use!');
25+ // }
26+ // });
You can’t perform that action at this time.
0 commit comments