analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.6k stars 251 forks source link

public folder affects routing behavior #1409

Closed leblancmeneses closed 1 month ago

leblancmeneses commented 1 month ago

Please provide the environment you discovered this bug in.

in both analogjs: "^1.9.0-beta.10" and "^v1.9.0",

Which area/package is the issue in?

router

Description

The following work: https://www.improvingstartups.com/startupwiki/assets/statuses/inactive.svg and https://www.improvingstartups.com/hello/assets/statuses/inactive.svg

This does not: https://www.improvingstartups.com/preview-next-version/assets/statuses/inactive.svg <- is picked up by 404 page.

Is route ordering affecting this? startupwiki vs hello vs preview-next-version

Container contents:

root@bd0ecd92bf1f:/app/public# tree
.
|-- assets
|   |-- (index).page-B83aob6A.js
|   |-- (index).server-Higt3U9E.js
|   |-- _...not-found_.page-VAHVASiS.js
|   |-- _commonjsHelpers-CqkleIqs.js
|   |-- analog.svg
|   |-- analogjs-content-CYlVRrww.js
|   |-- apexcharts.common-CHrJhjdc.js
|   |-- biz._state_._nameWithId_.page-CozT8ZOU.js
|   |-- biz._state_._nameWithId_.server-Higt3U9E.js
|   |-- biz.directory._letterWithIndex_.page-D32-Nl5Q.js
|   |-- biz.directory._letterWithIndex_.server-Higt3U9E.js
|   |-- biz.directory.page-DBdeJPMY.js
|   |-- biz.directory.server-Higt3U9E.js
|   |-- encodeURIComponent.pipe-pAvVAN12.js
|   |-- footer.component-BnwpwGc0.js
|   |-- header.component-BOMvv62G.js
|   |-- index---eQBXtP.css
|   |-- index-CsV_rfZg.js
|   |-- ngx-scrollbar-0o9Hj8ds.js
|   |-- pages
|   |   `-- (index)
|   |       |-- building.png
|   |       |-- car.svg
|   |       |-- checkmark.svg
|   |       |-- chevron-down.svg
|   |       |-- cog.svg
|   |       |-- company.svg
|   |       |-- house.svg
|   |       |-- logo.png
|   |       |-- one.svg
|   |       |-- rocket.svg
|   |       |-- shop.svg
|   |       |-- three.svg
|   |       |-- two.svg
|   |       `-- unknown.png
|   |-- ppl._state_._id_._name_.page-Cn96vn1E.js
|   |-- progress-indicator.component-Cm0BGJ0c.js
|   |-- rxjs-interop-RpGxx2eP.js
|   |-- search.page-w5k_gY4V.js
|   |-- search.server-Higt3U9E.js
|   |-- states
|   |   `-- texas.svg
|   |-- statuses
|   |   |-- active.svg
|   |   |-- inactive.svg
|   |   `-- pending.svg
|   |-- tooltip-YrE2DzM9.js
|   `-- vw-business-entity-master-record.component-BGcrzP62.js
|-- favicon.png

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

leblancmeneses commented 1 month ago

Not reproducible.