ngx-ssr 3.0.0-pr15.12
Install from the command line:
Learn more about npm packages
$ npm install @shiftcode/ngx-ssr@3.0.0-pr15.12
Install via package.json:
"@shiftcode/ngx-ssr": "3.0.0-pr15.12"
About this version
Services and helpers used for server side rendering.
-
SsrHttpInterceptorto rewrite relative urls on ssr- when in Lambda: rewrites to
${env.FINAL_DOMAIN}/${relativeUrl} - when local: rewrites to
${request.protocol}://${request.hostname}:4000/${relativeUrl}
- when in Lambda: rewrites to
- Make sure the environment Variable
FINAL_DOMAINis set
import { ServerModule, ServerTransferStateModule } from '@angular/platform-server'
import { ORIGIN_PROVIDER, SsrHttpInterceptor } from '@shiftcode/ngx-ssr'
import { AppComponent } from './app.component'
import { AppModule } from './app.module'
@NgModule({
imports: [ServerModule, ServerTransferStateModule, AppModule],
providers: [
ORIGIN_PROVIDER,
{ provide: HTTP_INTERCEPTORS, useClass: SsrHttpInterceptor, multi: true },
],
bootstrap: [AppComponent],
})
export class AppServerModule {}-
@angular/core+@angular/commons @nguniversal/express-engineexpress-
@shiftcode/ngx-core(Logger)
Assets
- ngx-ssr-3.0.0-pr15.12.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0