Just for clarity, to serve static files using express.static(), you still need to specify the static URL handlers in your app.yaml file. So the first and second method you listed are the same method.
On Wednesday, July 11, 2018 at 4:55:57 AM UTC-4, Dennis Yurkevich wrote: > > Hello All, > > When using the various static file hosting options on GAE Nodejs Flex > Environment, I see the below three as the main options: > 1. have the app serve on a route e.g app.use(express.static()) > 2. use the app.yaml config > 3. use google bucket / cdn > > My first question is which should be most performant? I am serving a 400kb > SPA bundle. > > Second, I need some flexibility which I am using the routing for, such as > deciding which bundle to serve based on geo, reading the cookie header and > logging. Would these things be possible with option 2 & 3? > > My final question, is that the app.yaml option is this just using nginx to > serve behind the scenes? > > Thanks, > Dennis > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0465fce3-fd28-447b-a371-43898c49130d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
