Does serving static files from multiple routes in Meteor implies to multiply /public installations ?
This is the question I posted yesterday on StackOverflow.
The behavior I find with this demo application is detailed here.
The opened issue is Meteor.
- in server/main.js, check that line 8 is
if( false ){
...
}This way, the (server-side) workaround doesn't run.
In yoyur browser, just ask sucessively for:
-
you should see the vectors image
-
you should still see the vectors image
-
Oop's - no more image
- in server/main.js, check that line 8 is
if( true ){
...
}This way, the (server-side) workaround will catch all known-prefixed urls, and rewrite them..
Enjoy!
As of Apr. 2026, tests done are against
Meteor --version Reproduced Work-around works meteor node --version
2.10.0 Yes Yes v14.21.2
2.12.0 Yes Yes
2.13.0 Yes Yes
2.14.0 Yes Yes
2.15.0 Yes Yes
2.16.0 Yes Yes
Upgrading to v3 requires replacing kadira:blaze-layout in favor of pwix:blaze-layout
+ meteor npm install lodash pino
3.0 Yes Yes
3.1 Yes Yes
3.2 Yes Yes
3.3 Yes Yes
3.4 Yes Yes
P. Wieser
- Last updated on 2026, Apr. 24th.