matrix-public-archive/server/lib
Eric Eastwood 9c0b6fe85e
Production ready build (#175)
- Rename `public` -> `client` so it doesn't get copied automagically as-is (without hashes which we want for cache busting), https://vitejs.dev/guide/assets.html#the-public-directory
     - We still build the version files to `public/` so their copied as-is and Vite handles it for us (so we can use `emptyOutDir`) 
 - Use a multiple entrypoint `.js` Vite build so things can be more intelligently bundled and take less time
     - We aren't using library mode because it doesn't minify or bundle assets
 - Using hash asset tags for cache busting. Hash of the file included in the file name
 - We lookup these hashed assets from `manifest.json` that Vite builds (https://vitejs.dev/guide/backend-integration.html) to serve and preload
 - In terms of optimized bundles, I know the current output isn't great now but will have to opt to fix that up separately in the future. Tracked by https://github.com/matrix-org/matrix-public-archive/issues/176
2023-04-24 23:50:53 -05:00
..
matrix-utils Follow tombstone and predecessor history (#167) 2023-04-19 01:26:15 -05:00
config.js Use JSON5 for configuration files with comments (#52) 2022-08-29 20:33:02 -05:00
express-async-handler.js Fix lints 2022-02-15 21:33:31 -06:00
fetch-endpoint.js Refactor `fetchEndpointAsText`/`fetchEndpointAsJson` to return `res` alongside `data` (#122) 2022-11-03 04:12:00 -05:00
get-dependencies-for-entry-point-name.js Production ready build (#175) 2023-04-24 23:50:53 -05:00
get-favicon-asset-urls.js Production ready build (#175) 2023-04-24 23:50:53 -05:00
get-version-tags.js Production ready build (#175) 2023-04-24 23:50:53 -05:00
parse-via-servers-from-user-input.js Do our best to get the user to the right place and try joining `via` derived server name (#168) 2023-04-11 15:09:44 -05:00
rethrown-error.js Better `child_process` error handling v2 - timeouts and actually fail process for error in scope (#62) 2022-09-02 18:49:45 -05:00
safe-json.js OpenTelemetry tracing so we can see spans where the app is taking time (#27) 2022-07-14 11:08:50 -05:00
sanitize-html.js OpenTelemetry tracing so we can see spans where the app is taking time (#27) 2022-07-14 11:08:50 -05:00
set-headers-to-preload-assets.js Production ready build (#175) 2023-04-24 23:50:53 -05:00
status-error.js Add search to room directory landing page (#70) 2022-09-15 20:41:55 -05:00