Update build to use static file replacement
Update for server-side rendering