{"id":15152915,"url":"https://github.com/jayjay1024/vite-ipfs-hosting","last_synced_at":"2025-08-31T16:33:33.957Z","repository":{"id":239123862,"uuid":"798605284","full_name":"JayJay1024/vite-ipfs-hosting","owner":"JayJay1024","description":"Vite IPFS Hosting","archived":false,"fork":false,"pushed_at":"2024-05-10T06:36:11.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T14:19:04.492Z","etag":null,"topics":["ipfs","ipfs-web","vite","vitejs"],"latest_commit_sha":null,"homepage":"https://ipfs.io/ipfs/bafybeiblm27aueasn7wn64g3266ksqzfs5p5vnscp35q37o7mwjf3tvhle","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JayJay1024.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-10T05:39:18.000Z","updated_at":"2024-05-10T06:36:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"919ee99f-f514-4378-ba6a-972ce1ce148c","html_url":"https://github.com/JayJay1024/vite-ipfs-hosting","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"553850e9f5705a1da754392cb5523678abdd89b5"},"previous_names":["jayjay1024/vite-ipfs-hosting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayJay1024%2Fvite-ipfs-hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayJay1024%2Fvite-ipfs-hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayJay1024%2Fvite-ipfs-hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayJay1024%2Fvite-ipfs-hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayJay1024","download_url":"https://codeload.github.com/JayJay1024/vite-ipfs-hosting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247645369,"owners_count":20972459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipfs","ipfs-web","vite","vitejs"],"created_at":"2024-09-26T16:41:40.766Z","updated_at":"2025-04-07T11:33:10.155Z","avatar_url":"https://github.com/JayJay1024.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite IPFS Hosting\n\n### How to Deploy\n\n1. Build\n\n```bash\n$ npm install\n$ npm run build\n```\n\n2. Upload to IPFS\n\nUpload the build output (`./dist`) to IPFS\n\n### Mainly Two Points\n\n1. Using hash-router\n\nSo we can use the `CID` to access the site, navigate to another page, and reload a sub-page.\n`http://127.0.0.1:8081/ipfs/QmQ85BsoKHxvY364jh1hdhDSCd9SBV6HFwSvTLNS7yhm28/#/team`\n\n2. Config `base: ''` or `base: './'`\n\nSo that after build is completed, the `resource`/`asset` file uses a relative path\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n    \u003clink rel=\"icon\" type=\"image/svg+xml\" href=\"./vite.svg\" /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /\u003e\n    \u003ctitle\u003eVite + React + TS\u003c/title\u003e\n    \u003cscript type=\"module\" crossorigin src=\"./assets/index-ClsHNSjL.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"stylesheet\" crossorigin href=\"./assets/index-BqhqAtY0.css\" /\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"root\"\u003e\u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003e **_Note_**: We should put the image files to `public` directory, and use a relative path as source like `\u003cimg src=\"images/react.svg\" /\u003e`\n\n### Friendly Links\n\n- [IPFS](https://ipfs.tech/)\n- [Fleek](https://fleek.xyz/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayjay1024%2Fvite-ipfs-hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayjay1024%2Fvite-ipfs-hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayjay1024%2Fvite-ipfs-hosting/lists"}