activated with "use router" which means preact-iso is installed and used to route URL to pages
index.html
loadssrc/index.jsx
src/index.jsx
provides a different component (such as Home) depending on route, or default if 404, using preact-isosrc/pages/Home/index.jsx
and exports function Home
- check the server for your own screed? maybe by requesting a subset of pubkeys containing part of yours (to prevent doxing yourself to the server)
- let you know if you have changes newer than the last time you uploaded to the server (from localstorage)
-
npm run dev
- Starts a dev server at http://localhost:5173/ or whatever port is configured in vite.config.js -
npm run dev -- --host
- same as above but allows for connections to other than localhost, such as external IP address (don't do this) -
npm run build
- Builds for production, emitting todist/
-
npm run preview
- Starts a server at http://localhost:4173/ to test production build locally -
npm run preview -- --port 8990 --host
- same as above but on port 8990 and allows connections from outside localhost (don't do this)