diff --git a/CHANGELOG.md b/CHANGELOG.md index edb514e6..3c6f58f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.1.1](https://github.com/netlify/angular-runtime/compare/v2.1.0...v2.1.1) (2024-05-27) + + +### Bug Fixes + +* don't shadow netlify functions ([#115](https://github.com/netlify/angular-runtime/issues/115)) ([9fb04f9](https://github.com/netlify/angular-runtime/commit/9fb04f95dae41e4ea8ca264f4a53334128758626)) + ## [2.1.0](https://github.com/netlify/angular-runtime/compare/v2.0.7...v2.1.0) (2024-05-22) diff --git a/README.md b/README.md index 9f03d6e9..f8f38e32 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,15 @@ Create a `netlify.toml` in the root of your project. Your file should include th ```toml [[plugins]] - package = "@netlify/plugin-angular-universal" + package = "@netlify/angular-runtime" ``` Install it via your package manager: ```bash -npm install -D @netlify/plugin-angular-universal +npm install -D @netlify/angular-runtime # or -yarn add -D @netlify/plugin-angular-universal +yarn add -D @netlify/angular-runtime ``` Read more about [file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation) @@ -81,7 +81,7 @@ netlify serve ### Requirements -To use the Angular Universal plugin while building and deploying with the CLI, you need to have `netlify-cli v17.0.0` installed (or a later version). +To use the Angular Runtime while building and deploying with the CLI, you need to have `netlify-cli v17.0.0` installed (or a later version). Please also make sure to use `ntl deploy --build` (rather than `ntl build && ntl deploy`). diff --git a/demo.test.mjs b/demo.test.mjs index 8cc59427..3ab3c956 100644 --- a/demo.test.mjs +++ b/demo.test.mjs @@ -5,6 +5,7 @@ test('edge function config', async () => { const { config } = await import('./demo/.netlify/edge-functions/angular-ssr/angular-ssr.mjs') assert.deepEqual(config.excludedPath, [ + '/.netlify/*', '/dashboard/index.html', '/favicon.ico', '/heroes/index.html', diff --git a/package-lock.json b/package-lock.json index 412f1024..55e48ea2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@netlify/angular-runtime", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@netlify/angular-runtime", - "version": "2.1.0", + "version": "2.1.1", "license": "MIT", "dependencies": { "fs-extra": "^11.1.1", diff --git a/package.json b/package.json index 94992790..6d7379ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netlify/angular-runtime", - "version": "2.1.0", + "version": "2.1.1", "description": "Netlify Angular Runtime - Run Angular seamlessly on Netlify.", "main": "src/index.js", "files": [ diff --git a/src/helpers/setUpEdgeFunction.js b/src/helpers/setUpEdgeFunction.js index 9ef5f0b6..d035b32a 100644 --- a/src/helpers/setUpEdgeFunction.js +++ b/src/helpers/setUpEdgeFunction.js @@ -83,7 +83,7 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => { (path) => `/${relative(join(outputDir, 'browser'), path)}`, ) - const excludedPaths = [...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix) + const excludedPaths = ['/.netlify/*', ...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix) // buy putting this into a separate module that's imported first, // we ensure this is initialised before any other module