From 70bb9f7d746803cac75f985be31e2382e80c6bb6 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 3 Jan 2025 16:17:04 +0000 Subject: [PATCH] chore: version 17.0.0-next.8 --- ponyracer/angular.json | 6 +++--- ponyracer/package.json | 8 ++++---- ponyracer/server.ts | 7 ++++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ponyracer/angular.json b/ponyracer/angular.json index a329142..1247be5 100644 --- a/ponyracer/angular.json +++ b/ponyracer/angular.json @@ -60,10 +60,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "ponyracer:build:production" + "buildTarget": "ponyracer:build:production" }, "development": { - "browserTarget": "ponyracer:build:development" + "buildTarget": "ponyracer:build:development" } }, "defaultConfiguration": "development" @@ -71,7 +71,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "ponyracer:build" + "buildTarget": "ponyracer:build" } }, "test": { diff --git a/ponyracer/package.json b/ponyracer/package.json index 261fca9..a7e0ff4 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -19,18 +19,18 @@ "@angular/platform-browser-dynamic": "^17.0.0-next.0", "@angular/platform-server": "^17.0.0-next.0", "@angular/router": "^17.0.0-next.0", - "@angular/ssr": "^17.0.0-next.7", + "@angular/ssr": "^17.0.0-next.8", "express": "^4.18.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.14.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^17.0.0-next.7", - "@angular/cli": "^17.0.0-next.7", + "@angular-devkit/build-angular": "^17.0.0-next.8", + "@angular/cli": "^17.0.0-next.8", "@angular/compiler-cli": "^17.0.0-next.0", "@types/express": "^4.17.17", - "@types/jasmine": "~4.3.0", + "@types/jasmine": "~5.1.0", "@types/node": "^18.18.0", "jasmine-core": "~5.1.0", "karma": "~6.4.0", diff --git a/ponyracer/server.ts b/ponyracer/server.ts index 113f3dc..1d5f888 100644 --- a/ponyracer/server.ts +++ b/ponyracer/server.ts @@ -2,14 +2,15 @@ import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr'; import express from 'express'; import { fileURLToPath } from 'node:url'; -import { dirname, join } from 'node:path'; +import { dirname, join, resolve } from 'node:path'; import bootstrap from './src/main.server'; // The Express app is exported so that it can be used by serverless Functions. export function app(): express.Express { const server = express(); - const browserDistFolder = dirname(fileURLToPath(import.meta.url)); - const indexHtml = join(browserDistFolder, 'index.server.html'); + const serverDistFolder = dirname(fileURLToPath(import.meta.url)); + const browserDistFolder = resolve(serverDistFolder, '../browser'); + const indexHtml = join(serverDistFolder, 'index.server.html'); const commonEngine = new CommonEngine();