Skip to content

flodaniel/tss-subdirectory-hosting-node

Repository files navigation

Instructions

To start the express server which serves the TSS app at /hub

  1. npm i && npm run build
  2. cd ./server && npm i && npm run start

Testing notes for serving static assets on subpath

vinxi dev

Works as expected

in production

assets are not served correctly from subpath. Can be observed as favicon is not loaded when TSS is served with the express app

Testing notes (previous issue)

Component Path
express /hub
app.config.ts /
router.tsx /
Result Does not work, navigation inside TSR always goes back to /
Component Path
express /hub
app.config.ts /hub
router.tsx /
Result Does not work, navigation inside TSR always goes back to /
Component Path
express /hub
app.config.ts /hub
router.tsx /hub
Result TSR navigation now works. chunks are still loaded from http://localhost:3001/\_build/assets/client-DkXsmdUL.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published