Skip to content

Commit

Permalink
refactor: Adjust installation schematics for SSR to use `server/index…
Browse files Browse the repository at this point in the history
….server.html`

- adjust server file
- update snapshot
  • Loading branch information
pawelfras committed Dec 30, 2024
1 parent 8da6be2 commit ef4ede7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export function app(): express.Express {
const server = express();
const serverDistFolder = dirname(fileURLToPath(import.meta.url));
const browserDistFolder = resolve(serverDistFolder, '../browser');
const indexHtml = join(browserDistFolder, 'index.html');
const indexHtml = join(serverDistFolder, 'index.server.html');
const indexHtmlContent = readFileSync(indexHtml, 'utf-8');
server.set('trust proxy', 'loopback');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function app(): express.Express {
const server = express();
const serverDistFolder = dirname(fileURLToPath(import.meta.url));
const browserDistFolder = resolve(serverDistFolder, '../browser');
const indexHtml = join(browserDistFolder, 'index.html');
const indexHtml = join(serverDistFolder, 'index.server.html');
const indexHtmlContent = readFileSync(indexHtml, 'utf-8');

server.set('trust proxy', 'loopback');
Expand Down

0 comments on commit ef4ede7

Please sign in to comment.