Mirrors localgrid.dev to
astrelitehq.github.io/localgrid.proxy/, alongside its custom-domain
deployment. No app source lives here: it installs the
@astrelitehq/localgrid
npm package and builds that package's source with a different Vite base
path baked in.
localgrid.dev's release workflow dispatches a rebuild here on every new
package version. Also rebuilds on push to main, or manually via
workflow_dispatch. ci.yml builds (not deploys) on every push, any
branch, to catch a broken build before it reaches main.
@astrelitehq/localgrid's own build (tsc -b) type-checks its whole
source tree, tests included, but npm never installs a dependency's
devDependencies. So postinstall runs npm ci inside
node_modules/@astrelitehq/localgrid, using the npm-shrinkwrap.json that
localgrid.dev publishes with every release. The build then uses the exact
devDependency versions localgrid.dev builds with, and this repo needs no
devDependencies of its own.
Not committed yet (see .gitignore); generating one needs
read:packages credentials to resolve @astrelitehq/localgrid. Once you
have one, run npm install, commit package-lock.json, and switch
pages.yml to npm ci.
export NODE_AUTH_TOKEN=<a PAT with read:packages on AstreliteHQ>
npm install
npm run dev # base path defaults to /
npm run build # production build at /localgrid.proxy/