Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 25, 2023
1 parent 282c4c1 commit 1cc1c82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@sentry/angular-ivy": "^7.80.1",
"@sentry/cli": "^2.21.5",
"compression": "^1.7.4",
"cors": "^2.8.5",
"express": "^4.15.2",
"mapbox-gl": "^2.15.0",
"marked": "^4.3.0",
Expand Down
2 changes: 2 additions & 0 deletions projects/srm/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'zone.js/node';
import { APP_BASE_HREF } from '@angular/common';
import { CommonEngine } from '@angular/ssr';
import * as express from 'express';
import * as cors from 'cors';
import { existsSync } from 'node:fs';
import { join } from 'node:path';
import { AppServerModule as bootstrap } from './src/main.server';
Expand All @@ -21,6 +22,7 @@ export function app(): express.Express {

const commonEngine = new CommonEngine();

server.use(cors());
server.set('view engine', 'html');
server.set('views', distFolder);

Expand Down

0 comments on commit 1cc1c82

Please sign in to comment.