diff --git a/ponyracer/angular.json b/ponyracer/angular.json index f1ce351..e26c3b7 100644 --- a/ponyracer/angular.json +++ b/ponyracer/angular.json @@ -13,7 +13,6 @@ "build": { "builder": "@angular/build:application", "options": { - "outputPath": "dist/ponyracer", "index": "src/index.html", "browser": "src/main.ts", "polyfills": [ @@ -29,7 +28,6 @@ "styles": [ "src/styles.css" ], - "scripts": [], "server": "src/main.server.ts", "outputMode": "server", "ssr": { @@ -91,8 +89,7 @@ ], "styles": [ "src/styles.css" - ], - "scripts": [] + ] } } } diff --git a/ponyracer/package.json b/ponyracer/package.json index 9508fe0..3a70e1b 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -16,18 +16,17 @@ "@angular/core": "^20.0.0-next.0", "@angular/forms": "^20.0.0-next.0", "@angular/platform-browser": "^20.0.0-next.0", - "@angular/platform-browser-dynamic": "^20.0.0-next.0", "@angular/platform-server": "^20.0.0-next.0", "@angular/router": "^20.0.0-next.0", - "@angular/ssr": "^20.0.0-next.2", + "@angular/ssr": "^20.0.0-next.3", "express": "^4.18.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" }, "devDependencies": { - "@angular/build": "^20.0.0-next.2", - "@angular/cli": "^20.0.0-next.2", + "@angular/build": "^20.0.0-next.3", + "@angular/cli": "^20.0.0-next.3", "@angular/compiler-cli": "^20.0.0-next.0", "@types/express": "^4.17.17", "@types/jasmine": "~5.1.0", diff --git a/ponyracer/src/server.ts b/ponyracer/src/server.ts index 591b7a6..54add3f 100644 --- a/ponyracer/src/server.ts +++ b/ponyracer/src/server.ts @@ -5,11 +5,9 @@ import { writeResponseToNodeResponse, } from '@angular/ssr/node'; import express from 'express'; -import { dirname, resolve } from 'node:path'; -import { fileURLToPath } from 'node:url'; +import { join } from 'node:path'; -const serverDistFolder = dirname(fileURLToPath(import.meta.url)); -const browserDistFolder = resolve(serverDistFolder, '../browser'); +const browserDistFolder = join(import.meta.dirname, '../browser'); const app = express(); const angularApp = new AngularNodeAppEngine(); diff --git a/ponyracer/tsconfig.json b/ponyracer/tsconfig.json index 56aa7b0..f79383a 100644 --- a/ponyracer/tsconfig.json +++ b/ponyracer/tsconfig.json @@ -20,6 +20,7 @@ "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, + "typeCheckHostBindings": true, "strictTemplates": true } }